You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/15 09:17:00 UTC

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

     [ https://issues.apache.org/jira/browse/CXF-8042?focusedWorklogId=242360&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-242360 ]

ASF GitHub Bot logged work on CXF-8042:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/May/19 09:16
            Start Date: 15/May/19 09:16
    Worklog Time Spent: 10m 
      Work Description: jimma commented on pull request #554: [CXF-8042]:Fix doPrivileged block doesn't totally work in ProxyClassLoader
URL: https://github.com/apache/cxf/pull/554
 
 
   …rCache
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 242360)
            Time Spent: 10m
    Remaining Estimate: 0h

> 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.2.9, 3.3.2
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>            Priority: Major
>             Fix For: 3.3.3, 3.2.10
>
>          Time Spent: 10m
>  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)