[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4317?page=c...
]
Pablo Saavedra commented on HHH-4317:
-------------------------------------
Ondrej, your workaround is fine but it won't work on JBoss, since it includes the
hibernate jar in it's lib directory. In that case, adding hibernate jar to the war
will probably result in classloading issues.
BTW, does this cache actually yield a significant performance gain?
Memory leak in EnumType class.
------------------------------
Key: HHH-4317
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4317
Project: Hibernate Core
Issue Type: Bug
Components: annotations
Reporter: Paweł Kępka
Priority: Critical
Attachments: enumtypeleak.war
Holding enum values in static enumValues map in EnumType class causes memory leaks on
application server where hibernate is loaded by application server's common
classloader (like for default configuration of JBoss4).
SoftReference or SessionFactory based caching should be used instead.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira