You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In JDK 8, a new command-line tool, jdeps, is added that developers can use to understand the static dependencies of their applications and libraries.  It also provides an -jdkinternals option to find dependencies to any JDK internal APIs that are unsupported and private to JDK implementation (see Why Developers Should Not Write Programs That Call 'sun' Packages).

 

Below lists some of the JDK internal APIs and the recommended way to replace their usage.

JDK internal APISupported APINote
sun.misc.Base64java.util.Base64 
sun.reflect.Reflection.getCallerClassTBDA JEP will be submitted to define a supported API for JDK 9
sun.security.x509.X500Namejavax.security.auth.x500.X500Principal 
  • No labels