Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3, 2.2.11
-
None
Description
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.