Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8042

doPrivileged block doesn't totally work in ProxyClassLoaderCache

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.3.3
    • Component/s: Core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      ProxyClassLoaderCache logs the classloader with "currentInterface.getClassLoader()". This should use getClassLoader(currentInterface) under a doPrivileged block.

          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;
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ema Jim Ma
                Reporter:
                ema Jim Ma
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m