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

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

commit d2990268220c250b3ec87c988bee9b19fad373dc
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 c880272463..e0015ff6b4 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to