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:42:53 UTC

(tomcat) branch main 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 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 <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 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org