RFR(S): 7074616: java.lang.management.ManagementFactory.getPlatformManagementInterfaces fails

Frederic Parain frederic.parain at oracle.com
Fri Mar 2 01:42:11 PST 2012


Greetings,

A simple bug fix. The getPlatformManagementInterfaces()
method tries to populate a TreeSet with classes that
don't implement the Comparable interface. The return
type of the method is Set<Class<? extends PlatformManagedObject>>,
so no need to have a sorted collection.
The fix replaces the use of a TreeSet with a HashSet.

The bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7074616

The webrev:
http://cr.openjdk.java.net/~fparain/7074616/webrev.00/

Thanks,

Fred

-- 
Frederic Parain - Oracle
Grenoble Engineering Center - France
Phone: +33 4 76 18 81 17
Email: Frederic.Parain at Oracle.com



More information about the serviceability-dev mailing list