SOAPBindingUtil 'leaks' proxy classes
-------------------------------------

                 Key: CXF-3143
                 URL: https://issues.apache.org/jira/browse/CXF-3143
             Project: CXF
          Issue Type: Bug
          Components: Soap Binding
    Affects Versions: 2.2.11, 2.3.0
            Reporter: Benson Margulies
            Assignee: Benson Margulies
             Fix For: 2.4


org.apache.cxf.tools.util.SOAPBindingUtil.getProxy(Class<T>, Object) creates 
proxies in the same class loader as the class it is proxying.

This essentially leaks them,  since the classes being proxied are prone to be 
in the system class loader, but the proxies are being created on behalf of the 
current thread.

The simplest improvement is to create them in the context class loader, so that 
(for example) the wsdl2java mojo can arrange for them to be GC-ed.

Another interesting question is whether there should be some sort of cache: it 
seems to me that we're creating proxies for the same IBM WSDL soap binding impl 
class over and over.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to