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

markt 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 4cb90b09b6 Handling has changed from NPE to ISE
4cb90b09b6 is described below

commit 4cb90b09b68b2a8a314b8471107f732eb7d0af26
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Oct 5 13:25:19 2023 +0100

    Handling has changed from NPE to ISE
---
 test/org/apache/catalina/core/TestAsyncContextImpl.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/catalina/core/TestAsyncContextImpl.java 
b/test/org/apache/catalina/core/TestAsyncContextImpl.java
index 9688548818..b5e9614f46 100644
--- a/test/org/apache/catalina/core/TestAsyncContextImpl.java
+++ b/test/org/apache/catalina/core/TestAsyncContextImpl.java
@@ -296,12 +296,12 @@ public class TestAsyncContextImpl extends TomcatBaseTest {
                             // may be recycled at any point. Normally
                             // there is enough time for this call to
                             // complete but not always. If this call
-                            // fails in Tomcat an NPE will result so
+                            // fails in Tomcat an ISE will result so
                             // handle this here with a hack. What we are
                             // really checking here is that it does not
                             // return true.
                             result.append(req.isAsyncStarted());
-                        } catch (NullPointerException npe) {
+                        } catch (IllegalStateException npe) {
                             result.append("false");
                         } catch (Throwable t) {
                             // Additional debugging for intermittent test 
failure


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to