Closed
Description
Elad Tabak opened SPR-10148 and commented
The method org.springframework.transaction.support.TransactionTemplate.exectue() have dead code where calling upon the TransactionCallback.doInTransaction() is surrounded with 'try/catch', only the last "catch" for "Exception" is unnecessary, since the "doInTransaction()" does not declare any checked exception to be thrown.
The last "catch" statement is actually dead/unreachable code, since only RuntimeExceptions and Errors can be thrown from the "doInTransaction" method.
Affects: 3.1.3
Issue Links:
- TransactionTemplate leaks transactions when TransactionCallback propagates undeclared checked exception [SPR-6361] #11027 TransactionTemplate leaks transactions when TransactionCallback propagates undeclared checked exception