You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/06/30 19:43:15 UTC

(tomcat) branch 9.0.x updated: And another location for better error handling on stream close

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

markt-asf 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 b0fe1618b8 And another location for better error handling on stream close
b0fe1618b8 is described below

commit b0fe1618b8df1d8a35f19ddefd94e876ea8497b3
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jun 30 20:42:47 2026 +0100

    And another location for better error handling on stream close
---
 java/org/apache/jasper/JspCompilationContext.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java
index c3a628dc0b..6f1139f3ee 100644
--- a/java/org/apache/jasper/JspCompilationContext.java
+++ b/java/org/apache/jasper/JspCompilationContext.java
@@ -481,11 +481,10 @@ public class JspCompilationContext {
             if (uc != null) {
                 try {
                     uc.getInputStream().close();
-                } catch (IOException ioe) {
+                } catch (Exception e) {
                     if (log.isDebugEnabled()) {
                         log.debug(Localizer.getMessage("jsp.error.lastModified", getJspFile()), ioe);
                     }
-                    result = -1;
                 }
             }
         }


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