changeset 18187:a798516cf58d

8008603: Improve provision of JMX providers Reviewed-by: alanb, dfuchs, jfdenise, skoivu
author jbachorik
date Thu, 07 Mar 2013 14:05:05 +0100
parents 482db5c3e9c0
children 48e73ecb2461
files jdk/src/share/classes/javax/management/remote/JMXConnectorFactory.java
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }