6746759: Fix for 6734813 introduced build break
authoremcmanus
Wed, 10 Sep 2008 14:56:57 +0200
changeset 1226 eba24d3b9c0c
parent 1225 6ef6227d36eb
child 1227 4546977d0d66
6746759: Fix for 6734813 introduced build break Reviewed-by: dfuchs
jdk/src/share/classes/sun/management/ClassLoadingImpl.java
jdk/src/share/classes/sun/management/CompilationImpl.java
jdk/src/share/classes/sun/management/HotSpotDiagnostic.java
jdk/src/share/classes/sun/management/HotspotInternal.java
jdk/src/share/classes/sun/management/ManagementFactoryHelper.java
jdk/src/share/classes/sun/management/MemoryImpl.java
jdk/src/share/classes/sun/management/OperatingSystemImpl.java
jdk/src/share/classes/sun/management/RuntimeImpl.java
jdk/src/share/classes/sun/management/ThreadImpl.java
--- a/jdk/src/share/classes/sun/management/ClassLoadingImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/ClassLoadingImpl.java	Wed Sep 10 14:56:57 2008 +0200
@@ -71,6 +71,6 @@
     native static void setVerboseClass(boolean value);
 
     public ObjectName getObjectName() {
-        return Util.newObjectName(ManagementFactory.CLASS_LOADING_MXBEAN_NAME);
+        return ObjectName.valueOf(ManagementFactory.CLASS_LOADING_MXBEAN_NAME);
     }
 }
--- a/jdk/src/share/classes/sun/management/CompilationImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/CompilationImpl.java	Wed Sep 10 14:56:57 2008 +0200
@@ -70,7 +70,7 @@
     }
 
     public ObjectName getObjectName() {
-        return Util.newObjectName(ManagementFactory.COMPILATION_MXBEAN_NAME);
+        return ObjectName.valueOf(ManagementFactory.COMPILATION_MXBEAN_NAME);
     }
 
 
--- a/jdk/src/share/classes/sun/management/HotSpotDiagnostic.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/HotSpotDiagnostic.java	Wed Sep 10 14:56:57 2008 +0200
@@ -117,6 +117,6 @@
     }
 
     public ObjectName getObjectName() {
-        return Util.newObjectName("com.sun.management:type=HotSpotDiagnostic");
+        return ObjectName.valueOf("com.sun.management:type=HotSpotDiagnostic");
     }
 }
--- a/jdk/src/share/classes/sun/management/HotspotInternal.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/HotspotInternal.java	Wed Sep 10 14:56:57 2008 +0200
@@ -41,7 +41,7 @@
 
     private final static String HOTSPOT_INTERNAL_MBEAN_NAME =
         "sun.management:type=HotspotInternal";
-    private static ObjectName objName = Util.newObjectName(HOTSPOT_INTERNAL_MBEAN_NAME);
+    private static ObjectName objName = ObjectName.valueOf(HOTSPOT_INTERNAL_MBEAN_NAME);
     private MBeanServer server = null;
 
     /**
--- a/jdk/src/share/classes/sun/management/ManagementFactoryHelper.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/ManagementFactoryHelper.java	Wed Sep 10 14:56:57 2008 +0200
@@ -220,7 +220,7 @@
      */
     private static void addMBean(MBeanServer mbs, Object mbean, String mbeanName) {
         try {
-            final ObjectName objName = Util.newObjectName(mbeanName);
+            final ObjectName objName = ObjectName.valueOf(mbeanName);
 
             // inner class requires these fields to be final
             final MBeanServer mbs0 = mbs;
@@ -280,7 +280,7 @@
 
     private static void unregisterMBean(MBeanServer mbs, String mbeanName) {
         try {
-            final ObjectName objName = Util.newObjectName(mbeanName);
+            final ObjectName objName = ObjectName.valueOf(mbeanName);
 
             // inner class requires these fields to be final
             final MBeanServer mbs0 = mbs;
--- a/jdk/src/share/classes/sun/management/MemoryImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/MemoryImpl.java	Wed Sep 10 14:56:57 2008 +0200
@@ -177,7 +177,7 @@
     }
 
     public ObjectName getObjectName() {
-        return Util.newObjectName(ManagementFactory.MEMORY_MXBEAN_NAME);
+        return ObjectName.valueOf(ManagementFactory.MEMORY_MXBEAN_NAME);
     }
 
 }
--- a/jdk/src/share/classes/sun/management/OperatingSystemImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/OperatingSystemImpl.java	Wed Sep 10 14:56:57 2008 +0200
@@ -74,7 +74,7 @@
         }
     }
     public ObjectName getObjectName() {
-        return Util.newObjectName(ManagementFactory.OPERATING_SYSTEM_MXBEAN_NAME);
+        return ObjectName.valueOf(ManagementFactory.OPERATING_SYSTEM_MXBEAN_NAME);
     }
 
 }
--- a/jdk/src/share/classes/sun/management/RuntimeImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/RuntimeImpl.java	Wed Sep 10 14:56:57 2008 +0200
@@ -149,7 +149,7 @@
     }
 
     public ObjectName getObjectName() {
-        return Util.newObjectName(ManagementFactory.RUNTIME_MXBEAN_NAME);
+        return ObjectName.valueOf(ManagementFactory.RUNTIME_MXBEAN_NAME);
     }
 
 }
--- a/jdk/src/share/classes/sun/management/ThreadImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/jdk/src/share/classes/sun/management/ThreadImpl.java	Wed Sep 10 14:56:57 2008 +0200
@@ -415,7 +415,7 @@
     private static native void resetContentionTimes0(long tid);
 
     public ObjectName getObjectName() {
-        return Util.newObjectName(ManagementFactory.THREAD_MXBEAN_NAME);
+        return ObjectName.valueOf(ManagementFactory.THREAD_MXBEAN_NAME);
     }
 
 }