You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jim Ma (JIRA)" <ji...@apache.org> on 2019/05/15 09:09:00 UTC
[jira] [Created] (CXF-8042) doPrivileged block doesn't totally work
in ProxyClassLoaderCache
Jim Ma created CXF-8042:
---------------------------
Summary: doPrivileged block doesn't totally work in ProxyClassLoaderCache
Key: CXF-8042
URL: https://issues.apache.org/jira/browse/CXF-8042
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 3.3.2, 3.2.9
Reporter: Jim Ma
Assignee: Jim Ma
Fix For: 3.3.3, 3.2.10
ProxyClassLoaderCache logs the classloader with "currentInterface.getClassLoader()". This should use getClassLoader(currentInterface) under a doPrivileged block.
{code:java}
private ClassLoader createProxyClassLoader(Class<?> proxyInterface) {
....
for (Class<?> currentInterface : PROXY_INTERFACES.get()) {
ret.addLoader(getClassLoader(currentInterface));
LOG.log(Level.FINE, "interface for new created ProxyClassLoader is "
+ currentInterface.getName());
LOG.log(Level.FINE, "interface's classloader for new created ProxyClassLoader is "
+ currentInterface.getClassLoader());
}
return ret;
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)