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

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 449aa9d3d5 Fix back-port
449aa9d3d5 is described below

commit 449aa9d3d5e26cf2e08ffb32eecdb08c9a490f34
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Oct 2 16:59:25 2026 +0100

    Fix back-port
---
 java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java 
b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
index e34e4f823f..40c91ba05f 100644
--- a/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
+++ b/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
@@ -765,8 +765,8 @@ public class SimpleTcpCluster extends LifecycleMBeanBase
 
     private LifecycleException handleExceptionDuringStop(LifecycleException 
stopException, Throwable t) {
         if (stopException == null) {
-            if (t instanceof LifecycleException le) {
-                return le;
+            if (t instanceof LifecycleException) {
+                return (LifecycleException) t;
             } else {
                 return new 
LifecycleException(sm.getString("simpleTcpCluster.stopUnable"), t);
             }


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

Reply via email to