[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2021?page=c...
]
Alexandre Juffet commented on HHH-2021:
---------------------------------------
well, this bug is greatly impacting us on a live application so if no one submit a patch,
i'll try ^^.
configuration is Hibernate 3.2.6ga and ehcache 1.2.3.
as M. Nisset pointed out we've used the same cache region for objects and query cache
and seems a very plausible source of the problem.
possible mitigation may be done by turning the query cache off by configuration.
org.hibernate.cache.QueryKey has a fragile equals() method
----------------------------------------------------------
Key: HHH-2021
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2021
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.1.3
Reporter: Kenny MacLeod
Assignee: Gail Badner
Priority: Trivial
Fix For: 3.2.x, 3.3.0
This one is no great shakes, but the first line of QueryKey.equals() casts the argument
to QueryKey without checking for its type. As such, the method is fragile.
It should be consistent with CacheKey, which does an instanceof check before the cast.
--
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