提交 4a77202b 编写于 作者: J jbachorik

8008603: Improve provision of JMX providers

Reviewed-by: alanb, dfuchs, jfdenise, skoivu
上级 dba6a3ec
...@@ -542,14 +542,9 @@ public class JMXConnectorFactory { ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册