jdk/src/share/classes/java/lang/management/PlatformComponent.java
changeset 13589 da4cb574f4a6
parent 11128 ffb869e392cf
child 14342 8435a30053c1
--- a/jdk/src/share/classes/java/lang/management/PlatformComponent.java	Fri Aug 24 11:48:51 2012 -0700
+++ b/jdk/src/share/classes/java/lang/management/PlatformComponent.java	Fri Aug 24 22:55:49 2012 -0700
@@ -363,7 +363,8 @@
         try {
             // Lazy loading the MXBean interface only when it is needed
             return (Class<? extends PlatformManagedObject>)
-                       Class.forName(mxbeanInterfaceName, false, null);
+                       Class.forName(mxbeanInterfaceName, false,
+                                     PlatformManagedObject.class.getClassLoader());
         } catch (ClassNotFoundException x) {
             throw new AssertionError(x);
         }