This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 060c0a5bb5 And another location for better error handling on stream
close
060c0a5bb5 is described below
commit 060c0a5bb59f0489560b57897090eb455afe30d7
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]