[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1540) Better Error Feedback In CollectionEntry.postFlush(PersistentCollection)

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:47 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list