diff -r 460e37d40f12 -r acaa49a2768a jdk/src/share/classes/sun/management/ThreadImpl.java --- a/jdk/src/share/classes/sun/management/ThreadImpl.java Wed Oct 21 16:28:57 2009 +0200 +++ b/jdk/src/share/classes/sun/management/ThreadImpl.java Wed Oct 21 17:33:18 2009 +0200 @@ -29,10 +29,6 @@ import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; -import java.lang.management.LockInfo; -import java.lang.management.MonitorInfo; -import java.util.Map; -import java.util.HashMap; import javax.management.ObjectName; @@ -415,7 +411,7 @@ private static native void resetContentionTimes0(long tid); public ObjectName getObjectName() { - return ObjectName.valueOf(ManagementFactory.THREAD_MXBEAN_NAME); + return Util.newObjectName(ManagementFactory.THREAD_MXBEAN_NAME); } }