8008603: Improve provision of JMX providers
Reviewed-by: alanb, dfuchs, jfdenise, skoivu
This commit is contained in:
parent
4a3efff02b
commit
f1924473cb
@ -542,14 +542,9 @@ public class JMXConnectorFactory {
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user