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

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

commit c0c30f9e0ca40e8d84c906920db09f53bf781173
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 59b0e2356f..02116c5939 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