This is an automated email from the ASF dual-hosted git repository.
remm 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 e97e430c70 Mark the JSP wrapper for reload after a compilation
e97e430c70 is described below
commit e97e430c70831a24c98358ba381bdcb42f32c87a
Author: remm <[email protected]>
AuthorDate: Tue May 20 16:28:30 2025 +0200
Mark the JSP wrapper for reload after a compilation
Previously a failed compilation after a change could lead to a reuse of
the wrapper without reloading it.
BZ69696.
---
java/org/apache/jasper/JspCompilationContext.java | 3 ++-
webapps/docs/changelog.xml | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/jasper/JspCompilationContext.java
b/java/org/apache/jasper/JspCompilationContext.java
index 216194d7e7..e8b821a749 100644
--- a/java/org/apache/jasper/JspCompilationContext.java
+++ b/java/org/apache/jasper/JspCompilationContext.java
@@ -589,7 +589,6 @@ public class JspCompilationContext {
jspCompiler.removeGeneratedFiles();
jspLoader = null;
jspCompiler.compile();
- jsw.setReload(true);
jsw.setCompilationException(null);
} catch (JasperException ex) {
// Cache compilation exception
@@ -607,6 +606,8 @@ public class JspCompilationContext {
// Cache compilation exception
jsw.setCompilationException(je);
throw je;
+ } finally {
+ jsw.setReload(true);
}
}
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index bd95c44d99..ae81979f60 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -113,6 +113,14 @@
</fix>
</changelog>
</subsection>
+ <subsection name="Jasper">
+ <changelog>
+ <fix>
+ <bug>69696</bug>: Mark the JSP wrapper for reload after a failed
+ compilation. (remm)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Web applications">
<changelog>
<fix>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]