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

doPrivileged block doesn't totally work in ProxyClassLoaderCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 3.3.3
    • Core
    • None
    • 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

              ema Jim Ma
              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