[
https://issues.apache.org/jira/browse/OWB-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835518#action_12835518
]
Sven Linstaedt commented on OWB-288:
------------------------------------
Sure, there might more than one proxy instance per class (e.g. multiple
producer method with the same return type), but we only need to have one proxy
subtype per class. As [1] mentions, it is possible to create a proxy class and
swap the MethodHandler by casting the proxy instance to ProxyObject.
[1]
http://www.csg.is.titech.ac.jp/~chiba/javassist/html/javassist/util/proxy/ProxyFactory.html
> cache generated Proxiy classes
> ------------------------------
>
> Key: OWB-288
> URL: https://issues.apache.org/jira/browse/OWB-288
> Project: OpenWebBeans
> Issue Type: Improvement
> Components: Core
> Affects Versions: M3
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: M4
>
>
> currently we create a new proxy class each time we need a new proxy instance.
> This way we leak permgen space.
> We could easily cache those generated proxy classes in JavassistProxyFactory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.