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

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

commit b911b8b129de051a7d88e3e4de43a152168b817a
Author: Mark Thomas <[email protected]>
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 6fc6767a4d..a4fc0877d7 100644
--- a/java/org/apache/jasper/JspCompilationContext.java
+++ b/java/org/apache/jasper/JspCompilationContext.java
@@ -482,11 +482,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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to