src/share/classes/sun/management/MappedMXBeanType.java

Print this page

        

@@ -801,11 +801,11 @@
             for (int i = 0; i < simpleTypes.length; i++) {
                 final OpenType<?> t = simpleTypes[i];
                 Class<?> c;
                 try {
                     c = Class.forName(t.getClassName(), false,
-                                      String.class.getClassLoader());
+                                      MappedMXBeanType.class.getClassLoader());
                     MappedMXBeanType.newBasicType(c, t);
                 } catch (ClassNotFoundException e) {
                     // the classes that these predefined types declare
                     // must exist!
                     throw new AssertionError(e);