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)
|
if (loader == null) {
|
||||||
loader = AccessController.doPrivileged(
|
loader = Thread.currentThread().getContextClassLoader();
|
||||||
new PrivilegedAction<ClassLoader>() {
|
}
|
||||||
public ClassLoader run() {
|
|
||||||
return
|
|
||||||
Thread.currentThread().getContextClassLoader();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return loader;
|
return loader;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user