mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-01 03:39:05 +00:00
Merge branch '6.0.x'
This commit is contained in:
+5
-4
@@ -1083,10 +1083,11 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
|
||||
* @param ex the throwable to try to unwrap
|
||||
*/
|
||||
private Throwable unwrapIfResourceCleanupFailure(Throwable ex) {
|
||||
if (ex instanceof RuntimeException &&
|
||||
ex.getCause() != null &&
|
||||
ex.getMessage().startsWith("Async resource cleanup failed")) {
|
||||
return ex.getCause();
|
||||
if (ex instanceof RuntimeException && ex.getCause() != null) {
|
||||
String msg = ex.getMessage();
|
||||
if (msg != null && msg.startsWith("Async resource cleanup failed")) {
|
||||
return ex.getCause();
|
||||
}
|
||||
}
|
||||
return ex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user