On 4/21/2015 12:01 AM, Shanliang Jiang wrote:
Hi,

Please review this test fix:

webrev: http://cr.openjdk.java.net/~sjiang/JDK-8078144/00/
bug: https://bugs.openjdk.java.net/browse/JDK-8078144

The method sun.management.ManagementFactoryHelper.getDiagnosticMXBean was removed because HotSpotDiagnosticMXBean is not in java.management module but in jdk.management module, to get the HotSpotDiagnosticMXBean we should call:
ManagementFactory.getPlatformMXBean(HotSpotDiagnosticMXBean.class)

The webrev.01 version looks good to me. JDK-8042901 fixed several tests to eliminate the dependency on sun.management internal APIs and missed these few tests. You probably may have done this - grep and see if there are any remaining tests to be updated.

Mandy

Reply via email to