]
Steve Ebersole closed HHH-1390.
-------------------------------
Closing stale resolved issues
Session.isOpen() throws exeception when the session is closed with
ThreadLocalSessionContext
--------------------------------------------------------------------------------------------
Key: HHH-1390
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1390
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.1.1
Environment: Hibernate 3.1.1, Sun Jdk142_10, Oracle 10g, WinXP SP2.
Reporter: Adrian Fletcher
Assignee: Steve Ebersole
Priority: Minor
Fix For: 3.1.2
Attachments: closesessiontest.zip, SessionCloseTest.java,
TEST-SessionCloseTest.xml, TEST-SessionCloseTest.xml
Probably due to this improvement in 3.1.1: [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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: