[ 
https://issues.apache.org/jira/browse/OWB-445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bergmark reassigned OWB-445:
--------------------------------

    Assignee: Mark Struberg  (was: Joe Bergmark)

In the AbstractDecorator code, I removed the usage of setHandler from the 
Factory, and moved it to the point where we create an instance from the 
constructor.

In your comment above you mentioned 2 places.  Where is the second one?

> we must not use javassist ProxyFactory#setHandler(MethodHandler)
> ----------------------------------------------------------------
>
>                 Key: OWB-445
>                 URL: https://issues.apache.org/jira/browse/OWB-445
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0-alpha-2
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.0.0-alpha-3
>
>
> ProxyFactory.setHandler is deprecated and if used creates memory leaks!
> We must create the ProxyClass  without a default method handler and set it 
> after we create a proxy instance of that very class:
> Object proxyInstance = proxyClass.newInstance();
> ((ProxyObject) proxyInstance ).setHandler( ... ) 

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