diff --git a/src/share/classes/javax/management/remote/JMXConnectorFactory.java b/src/share/classes/javax/management/remote/JMXConnectorFactory.java index 3cea5d4487954b87f1cbfec00c81d67043a48ef8..4f6533a49afb2b9fd67306cc30d0d9bab9324478 100644 --- a/src/share/classes/javax/management/remote/JMXConnectorFactory.java +++ b/src/share/classes/javax/management/remote/JMXConnectorFactory.java @@ -542,14 +542,9 @@ public class JMXConnectorFactory { } } - if (loader == null) - loader = AccessController.doPrivileged( - new PrivilegedAction() { - public ClassLoader run() { - return - Thread.currentThread().getContextClassLoader(); - } - }); + if (loader == null) { + loader = Thread.currentThread().getContextClassLoader(); + } return loader; }