8008603: Improve provision of JMX providers
authorjbachorik
Thu, 07 Mar 2013 14:05:05 +0100
changeset 18187 a798516cf58d
parent 18186 482db5c3e9c0
child 18188 48e73ecb2461
8008603: Improve provision of JMX providers Reviewed-by: alanb, dfuchs, jfdenise, skoivu
jdk/src/share/classes/javax/management/remote/JMXConnectorFactory.java
--- a/jdk/src/share/classes/javax/management/remote/JMXConnectorFactory.java	Mon Mar 04 14:34:15 2013 -0800
+++ b/jdk/src/share/classes/javax/management/remote/JMXConnectorFactory.java	Thu Mar 07 14:05:05 2013 +0100
@@ -542,14 +542,9 @@
             }
         }
 
-        if (loader == null)
-            loader = AccessController.doPrivileged(
-                    new PrivilegedAction<ClassLoader>() {
-                        public ClassLoader run() {
-                            return
-                                Thread.currentThread().getContextClassLoader();
-                        }
-                    });
+        if (loader == null) {
+            loader = Thread.currentThread().getContextClassLoader();
+        }
 
         return loader;
     }