Java - JDK9 tool jdeps and jdeprscan to inspect any illegal usage

less than 1 minute read

The following jdeps command will inspect any illegal usage in My.class and provide alternative way to fix problems.
This tool exists in JDK9.

1
$ jdeps -jdkinternals My.class

Static analysis tool detect the usage of deprecated APIs.

1
$ jdeprscan -cp My