Issue Details (XML | Word | Printable)

Key: ANN-778
Type: Patch Patch
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Juraci Paixao Krohling
Reporter: Juraci Paixao Krohling
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Annotations

Test hangs if an exception is thrown, due to unclosed transaction

Created: 03/Oct/08 08:59 AM   Updated: 31/Mar/09 05:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File ANN-778.diff (2 kB)
2. File ANN-778_Fixed.diff (1 kB)

Environment: Annotations from trunk on DB2 v91


 Description  « Hide
The test EmbeddedGenericsTest#testWorksWithGenericCollectionOfElements fails on DB2 v91, and the transaction which was started in the "setup" method blocks the execution of any other SQL Statement sent to the server. Thus, the tests needs to be enclosed by a try/catch to issue a rollback in case of failure.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Juraci Paixao Krohling added a comment - 03/Oct/08 09:00 AM
The diff containing a fix for the tests. It only puts the actual code inside try/catch block, to rollback it in case of exceptions.

Juraci Paixao Krohling added a comment - 22/Oct/08 10:05 AM
As discussed by email, the parent class already handles the session opening and the exceptions. So, this diff replaces the other diff, as this one uses the features that the parent class already offers.