[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2112?page=c...
]
Steve Ebersole commented on HHH-2112:
-------------------------------------
Cool, you've isolated the cause so it should be trivial to come up with a small test
case.
I mean if the issue is really just the "red herring"-ness, I can easily come up
with a more appropriate failure message.
If you want to argue that this should be allowed, I need a test case showing what it is
that you are trying to do and believe to be valid. And given your description, it should
be easy to come up with an example that uses one or two domain objects.
ClassCastException in
StatefulPersistenceContext.getCachedDatabaseSnapshot(...)
-------------------------------------------------------------------------------
Key: HHH-2112
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2112
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.cr4
Reporter: Aleksei Valikov
StatefulPersistenceContext.getCachedDatabaseSnapshot(EntityKey key) causes
ClassCastException when NO_ROW was put for the certain entity key.
Please see the discussion here:
http://forum.hibernate.org/viewtopic.php?t=959868&highlight=getcached...
In these situations, this method should probably return null. It is very likely since
other calling methods check for the returned value to be null .
--
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