8008603: Improve provision of JMX providers
Reviewed-by: alanb, dfuchs, jfdenise, skoivu
--- 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;
}