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

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


The following commit(s) were added to refs/heads/main by this push:
     new 781453bd13 Handling has changed from NPE to ISE
781453bd13 is described below

commit 781453bd13cd7c0119f1c0f2c2901a00ee7f87ee
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 f2325d8da1..2cbbddc262 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