"jdeprscan --release X" - Deprecated API as of Release X

This section provides a tutorial example on how to use 'jdeprscan' command to scan for deprecated APIs of a given JAR file as of a specific JDK release.

If you want to find out what deprecated APIs are used in a given JAR file as of a specific JDK release, you can run the "jdeprscan --release X" command.

Let's use the dt.jar JAR file of JDK 8 as an example:

herong> jdeprscan --version
12.0.1

herong> jdeprscan --release 8 \Progra~1\java\jdk-8.0.1\lib\dt.jar
warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL
Jar file \local\jdk\lib\dt.jar:

herong> jdeprscan --release 9 \Progra~1\java\jdk-8.0.1\lib\dt.jar
warning: unknown enum constant 
   javax.annotation.Resource.AuthenticationType.CONTAINER
warning: unknown enum constant javax.jws.WebParam.Mode.IN
warning: unknown enum constant 
   javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED
Jar file \Progra~1\java\jdk-8.0.1\lib\dt.jar:
class javax/swing/AbstractButtonBeanInfo uses deprecated method 
   java/lang/Integer::<init>(I)V
class javax/swing/JComponentBeanInfo uses deprecated method 
   java/lang/Integer::<init>(I)V
class javax/swing/JDesktopPaneBeanInfo uses deprecated method 
   java/lang/Integer::<init>(I)V
class javax/swing/JDialogBeanInfo uses deprecated method 
   java/lang/Integer::<init>(I)V
class javax/swing/JFileChooserBeanInfo uses deprecated method 
   java/lang/Integer::<init>(I)V
...

The output shows that:

Table of Contents

 About This Book

 Java Tools Terminology

 Java Tools Included in JDK

 javac - The Java Program Compiler

 jar - The JAR File Tool

 jlink - The JRE Linker

 jmod - The JMOD File Tool

 jimage - The JIMAGE File Tool

 jpackage - Binary Package Builder

 java - The Java Program Launcher

 jdeps - The Java Class Dependency Analyzer

jdeprscan - The Java Deprecated API Scanner

 jdeprscan - Deprecated API Scanner Command

 "jdeprscan jar_file" - Deprecated API of Class File

 "jdeprscan jar_file" - Deprecated API of JAR File

"jdeprscan --release X" - Deprecated API as of Release X

 "jdeprscan --list" - List All Deprecated APIs

 jdb - The Java Debugger

 jcmd - The JVM Diagnostic Tool

 jconsole - Java Monitoring and Management Console

 jstat - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

 jhsdb - The Java HotSpot Debugger

 jvisualvm (Java VisualVM) - JVM Visual Tool

 jmc - Java Mission Control

 javap - The Java Class File Disassembler

 keytool - Public Key Certificate Tool

 jarsigner - JAR File Signer

 jshell - Java Language Shell

 jrunscript - Script Code Shell

 serialver - serialVersionUID Generator

 native2ascii - Native-to-ASCII Encoding Converter

 Outdated Tutorials

 References

 Full Version in PDF/EPUB