This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 82f61ac68a Fix back-port
82f61ac68a is described below
commit 82f61ac68a99f4f4eddedbf7bb3a00410c66260f
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]