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

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit 27860ddf9fcf033b2fd54f97e6eb436b127fe76f
Author: Robert Lazarski <[email protected]>
AuthorDate: Mon Apr 6 03:06:47 2026 -1000

    kernel: fix static shutDown flag in ThreadPool causing test isolation 
failures
    
    ThreadPool.shutDown was declared static, so calling safeShutDown() on any
    instance permanently poisoned all future instances in the same JVM. In
    TCPEchoRawXMLTest, tearDown() after the first test set the flag, then each
    subsequent test's setUp() failed with "Thread pool is shut down" (and left
    a leaked ServerSocket on port 5555, causing "Address already in use" for the
    remaining tests).
    
    Fix: change to an instance field so each ThreadPool tracks its own 
lifecycle.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java 
b/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java
index bb05949922..fab023adf2 100644
--- a/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java
+++ b/modules/kernel/src/org/apache/axis2/util/threadpool/ThreadPool.java
@@ -43,7 +43,7 @@ import java.util.concurrent.TimeUnit;
 public class ThreadPool implements ThreadFactory {
     private static final Log log = LogFactory.getLog(ThreadPool.class);
     protected static long SLEEP_INTERVAL = 1000;
-    private static boolean shutDown;
+    private boolean shutDown;
     protected ThreadPoolExecutor executor;
 
     //integers that define the pool size, with the default values set.

Reply via email to