changeset 573:b35ccd203a7e

6746759: Fix for 6734813 introduced build break Reviewed-by: dfuchs
author emcmanus
date Wed, 10 Sep 2008 14:56:57 +0200
parents 2b44dd8ed72d
children 3e7b9a0f3a6f
files src/share/classes/sun/management/ClassLoadingImpl.java src/share/classes/sun/management/CompilationImpl.java src/share/classes/sun/management/HotSpotDiagnostic.java src/share/classes/sun/management/HotspotInternal.java src/share/classes/sun/management/ManagementFactoryHelper.java src/share/classes/sun/management/MemoryImpl.java src/share/classes/sun/management/OperatingSystemImpl.java src/share/classes/sun/management/RuntimeImpl.java src/share/classes/sun/management/ThreadImpl.java
diffstat 9 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/management/ClassLoadingImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/CompilationImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/HotSpotDiagnostic.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/HotspotInternal.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/ManagementFactoryHelper.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/MemoryImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/OperatingSystemImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/RuntimeImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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/src/share/classes/sun/management/ThreadImpl.java	Wed Sep 10 13:36:47 2008 +0200
+++ b/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);
     }
 
 }