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

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Dec 27 13:06:27 EST 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.1.0)
                   5.0.0

> 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: 5.0.0
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list