7116722: Miscellaneous warnings sun.misc ( and related classes )

Alan Bateman Alan.Bateman at oracle.com
Thu Dec 1 10:20:39 UTC 2011

On 30/11/2011 22:34, chris hegarty wrote:
> Thanks for all the feedback.
> changes:
>  - use diamond in JarIndex (style issue)
>  - sun.misc.Service -> java.util.ServiceLoader
>      in InetAddress and HttpServerProvider
>  - ExtensionDependency: suppress unchecked on declaration/assignment
> http://cr.openjdk.java.net/~chegar/7116722/webrev.01/webrev/
Thanks for changing InetAddress and other place to use ServiceLoader (I 
realize this is straying outside of the simple warnings area but it's 
the right thing to do). Now I wonder if we should deprecate 
sun.misc.Service, looks like there are only two remaining usages in the 
JDK and nobody outside of the JDK should be using it.


More information about the core-libs-dev mailing list