Fixed
Details
Assignee
Steve EbersoleSteve EbersoleReporter
Adrian FletcherAdrian FletcherComponents
Fix versions
Affects versions
Priority
Minor
Details
Details
Assignee
Steve Ebersole
Steve EbersoleReporter
Adrian Fletcher
Adrian FletcherComponents
Fix versions
Affects versions
Priority
Created January 24, 2006 at 7:13 PM
Updated March 21, 2011 at 7:00 PM
Resolved January 26, 2006 at 7:23 AM
Probably due to this improvement in 3.1.1: https://hibernate.atlassian.net/browse/HHH-1290#icft=HHH-1290 - Defensive checking of session status
Since Hibernate 3.1.1 Session.isOpen() and Session.close() throw execeptions when the session is closed.
Therefore the example described in the Session javadoc will now fail in the finally block even when the commit succeeds:
(see http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Session.html)
The attached JUnit tests both work in Hibernate 3.1 and both fail in Hibernate 3.1.1.
Session.isOpen() should not throw an exception when the session is closed.