changeset 6265:2e06b7765cb7

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