mrszj / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Rollback of nested transaction is not handled correctly #682

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When an transaction hits an exception and should trigger a rollback it might 
not happen if the transaction is a nested transaction.
It will not happen if either the following is the case.
 1. The  most transaction does not rollback on this type of exception
 2. If some exception handler between the inner and the outer most transaction swallows the exception.

Attached is a patch containing 3 commits.
 1. commit: added unit test to reproduce the issue
 2. commit: fix to the issue
 3. commit: fixed an old TODO in the code

Original issue reported on code.google.com by st.clas...@gmx.ch on 30 Jan 2012 at 11:42

Attachments: