This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 499a710f4d5cf92bbd4b46ac8f335aa179c2fb1d
Author: remm <[email protected]>
AuthorDate: Tue Nov 3 00:46:37 2026 +0100

    Sync with 10.1 ExceptionUtils
---
 .../src/main/java/org/apache/tomcat/jdbc/pool/util/ExceptionUtils.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/util/ExceptionUtils.java
 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/util/ExceptionUtils.java
index 667eea8dce..fda299b4a3 100644
--- 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/util/ExceptionUtils.java
+++ 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/util/ExceptionUtils.java
@@ -40,6 +40,9 @@ public class ExceptionUtils {
      * @param t the Throwable to check
      */
     public static void handleThrowable(Throwable t) {
+        if (t instanceof ThreadDeath) {
+            throw (ThreadDeath) t;
+        }
         if (t instanceof StackOverflowError) {
             // Swallow silently - it should be recoverable
             return;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to