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/16 10:46:00 UTC

[jira] [Updated] (CXF-8042) doPrivileged block doesn't totally work in ProxyClassLoaderCache

     [ https://issues.apache.org/jira/browse/CXF-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Ma updated CXF-8042:
------------------------
    Affects Version/s:     (was: 3.2.9)
        Fix Version/s:     (was: 3.2.10)

> 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
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>            Priority: Major
>             Fix For: 3.3.3
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)