提交 c5d62cdb 编写于 作者: E emcmanus

6746759: Fix for 6734813 introduced build break

Reviewed-by: dfuchs
上级 0550b4b2
......@@ -71,6 +71,6 @@ class ClassLoadingImpl implements ClassLoadingMXBean {
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);
}
}
......@@ -70,7 +70,7 @@ class CompilationImpl implements CompilationMXBean {
}
public ObjectName getObjectName() {
return Util.newObjectName(ManagementFactory.COMPILATION_MXBEAN_NAME);
return ObjectName.valueOf(ManagementFactory.COMPILATION_MXBEAN_NAME);
}
......
......@@ -117,6 +117,6 @@ public class HotSpotDiagnostic implements HotSpotDiagnosticMXBean {
}
public ObjectName getObjectName() {
return Util.newObjectName("com.sun.management:type=HotSpotDiagnostic");
return ObjectName.valueOf("com.sun.management:type=HotSpotDiagnostic");
}
}
......@@ -41,7 +41,7 @@ public class HotspotInternal
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;
/**
......
......@@ -220,7 +220,7 @@ public class ManagementFactoryHelper {
*/
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 @@ public class ManagementFactoryHelper {
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;
......
......@@ -177,7 +177,7 @@ class MemoryImpl extends NotificationEmitterSupport
}
public ObjectName getObjectName() {
return Util.newObjectName(ManagementFactory.MEMORY_MXBEAN_NAME);
return ObjectName.valueOf(ManagementFactory.MEMORY_MXBEAN_NAME);
}
}
......@@ -74,7 +74,7 @@ public class OperatingSystemImpl implements OperatingSystemMXBean {
}
}
public ObjectName getObjectName() {
return Util.newObjectName(ManagementFactory.OPERATING_SYSTEM_MXBEAN_NAME);
return ObjectName.valueOf(ManagementFactory.OPERATING_SYSTEM_MXBEAN_NAME);
}
}
......
......@@ -149,7 +149,7 @@ class RuntimeImpl implements RuntimeMXBean {
}
public ObjectName getObjectName() {
return Util.newObjectName(ManagementFactory.RUNTIME_MXBEAN_NAME);
return ObjectName.valueOf(ManagementFactory.RUNTIME_MXBEAN_NAME);
}
}
......@@ -415,7 +415,7 @@ class ThreadImpl implements ThreadMXBean {
private static native void resetContentionTimes0(long tid);
public ObjectName getObjectName() {
return Util.newObjectName(ManagementFactory.THREAD_MXBEAN_NAME);
return ObjectName.valueOf(ManagementFactory.THREAD_MXBEAN_NAME);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册