8008603: Improve provision of JMX providers

Reviewed-by: alanb, dfuchs, jfdenise, skoivu
This commit is contained in:
Jaroslav Bachorik 2013-03-07 14:05:05 +01:00
parent 4a3efff02b
commit f1924473cb

View File

@ -542,14 +542,9 @@ public class JMXConnectorFactory {
} }
} }
if (loader == null) if (loader == null) {
loader = AccessController.doPrivileged( loader = Thread.currentThread().getContextClassLoader();
new PrivilegedAction<ClassLoader>() {
public ClassLoader run() {
return
Thread.currentThread().getContextClassLoader();
} }
});
return loader; return loader;
} }