You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2010/09/06 23:03:34 UTC
[jira] Assigned: (OWB-445) we must not use javassist
ProxyFactory#setHandler(MethodHandler)
[ https://issues.apache.org/jira/browse/OWB-445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg reassigned OWB-445:
---------------------------------
Assignee: Joe Bergmark (was: Mark Struberg)
Joe, could you please take a look at the two ProxyFactory invocations marked with //X TODO?
They are both in code you touched lately, so I guess you are faster than I with fixing them.
txs!
> 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: Joe Bergmark
>
> 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.