JDK-8066506 : Migrate use of sun.misc.* to supported APIs
  • Type: Bug
  • Component: core-libs
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2014-12-02
  • Updated: 2017-05-11
  • Resolved: 2014-12-02
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
All sun.misc.* classes are JDK internal APIs that are not supported and should not be used. This issue documents the supported APIs that you should migrate to use. 

1. sun.misc.BASE64Decoder, sun.misc.BASE64Encoder

Use java.util.Base64 @since 8 instead

2. sun.misc.Service	

Use java.util.ServiceLoader @since 1.6	 instead

3. sun.misc.Timer

Use java.util.Timer @since 1.3 instead.

4. sun.misc.RegexPool 

Use java.util.regex @since 1.4 instead.