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

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Jan 2 00:48:19 EST 2012


     [ 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.1)

> 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
>              Labels: bytecode
>
> 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