]
Steve Ebersole closed HHH-1540.
-------------------------------
Closing stale resolved issues
Better Error Feedback In
CollectionEntry.postFlush(PersistentCollection)
------------------------------------------------------------------------
Key: HHH-1540
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1540
Project: Hibernate Core
Issue Type: Improvement
Affects Versions: 3.1.2
Reporter: Daniel Gredler
Assignee: Steve Ebersole
Priority: Minor
Fix For: 3.2.0.alpha2, 3.1.3
Original Estimate: 0.5h
Remaining Estimate: 0.5h
When using custom event listeners, sometimes you mess with (and initialize) lazy
collections by mistake, which causes CollectionEntry.postFlush(PersistentCollection) to
throw an AssertionFailure. Unfortunately, the role name of the collection is not included
in the error message.
I propose changing
throw new AssertionFailure( "collection was not processed by flush()" );
to read
throw new AssertionFailure( "collection " + collection.getRole() + " was
not processed by flush()" );
or something along those lines...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: