[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5684) Change Javassist usage to not use javassist.util.proxy.ProxyFactory

Steve Ebersole (JIRA) noreply at atlassian.com
Thu Mar 31 17:01:08 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole updated HHH-5684:
--------------------------------

    Fix Version/s:     (was: 4.0.0.Alpha2)
                   4.0.0.Alpha3

> Change Javassist usage to not use javassist.util.proxy.ProxyFactory
> -------------------------------------------------------------------
>
>                 Key: HHH-5684
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5684
>             Project: Hibernate Core
>          Issue Type: Improvement
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>             Fix For: 4.0.0.Alpha3
>
>
> javassist.util.proxy.ProxyFactory maintains a cache of proxy classes generated.  Apparently it does this based on a static variable.  First and foremost, this cache is completely unnecessary given how Hibernate creates and uses these proxy classes.  Second there is some conjecture that this might possibly contribute to permgen leaks.
> Here is an example of leveraging Javassist without using its ProxyFactory: http://github.com/weld/core/blob/master/impl/src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list