Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Unsupported API (not for use)Supported APIs (please use instead)Note
sun.iojava.nio.charsets 

sun.misc.BASE64Decoder, sun.misc.BASE64Encoder,
com.sun.org.apache.xml.internal.security.utils.Base64

java.util.Base64See http://openjdk.java.net/jeps/135
sun.misc.ClassLoaderUtiljava.net.URLClassLoader.close() 
sun.misc.Servicejava.util.ServiceLoader 
sun.misc.UnsafeTBDA JEP will be submitted to define a supported API
sun.reflect.Reflection.getCallerClassTBDA JEP will be submitted to define a supported API
sun.security.action.GetPropertyAction

System.getProperty

AccessController.doPrivileged(
(PrivilegedAction<String>) () -> System.getProperty(key));
sun.security.krb5.*Some provided in com.sun.security.jgssIf internal classes are used to get the session key of Krb5Context, we now have ExtendedGSSContext for this purpose. There are still many more functions not available yet.
sun.security.x509.X500Namejavax.security.auth.x500.X500Principal 
com.sun.image.codec.jpeg.**javax.imageioSee JDK-6527962
com.sun.org.apache.xml.internal.securityjavax.xml.crypto 

com.sun.net.ssl.**

javax.net.ssl 

security provider implementation class such as

  • com.sun.net.ssl.internal.ssl.Provider
  • sun.security.provider.Sun

java.security.Security.getProvider("SUN")

See Oracle security providers documentation
sun.security.provider.PolicyFile() or sun.security.provider.PolicyFile(URL)java.security.Policy.getInstance("JavaPolicy", new java.security.URIParameter(uri)); 
com.sun.rowset.**javax.sql.rowset.RowSetProvider 
com.sun.tools.javac.**

javax.tools, javax.lang.model and com.sun.source

com.sun.tools.javac.Main is a supported API.