RFR : 8023395 : (xs) Deprecate sun.misc.Sort and sun.misc.Compare

Alan Bateman Alan.Bateman at oracle.com
Tue Aug 20 19:33:16 UTC 2013

On 20/08/2013 19:07, Mike Duigou wrote:
> Hello all;
> This is a proposal to deprecate (Any votes for outright removal?)
No objection to deprecating it but I assume anyone compiling against it 
is seeing a warning already (because it's a JDK internal class).

We've historically being cautious about removing classes from sun.misc 
(as we know there is code that ignores the warnings). So I would at 
least do a quick check to see if there is anything obvious using it. One 
other thing is that this isn't the only orphan in sun.misc. Some time 
ago I created JDK-6852936 with a list of classes that aren't used. I 
wasn't brave enough at the time to try to remove them.


> two classes in the private sun.misc package. These are ancient vestigial classes who's usage has long been eliminated in the JDK in favour of java.util.Arrays.sort(T[], Comparator) and java.util.Arrays.sort(T[], int start, int end, Comparator).
> http://cr.openjdk.java.net/~mduigou/JDK-8023395/0/webrev/

More information about the core-libs-dev mailing list