This is an automated email from the ASF dual-hosted git repository. remm 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 f52cfe4698 Mark the JSP wrapper for reload after a compilation f52cfe4698 is described below commit f52cfe4698299f7ccbbfa0706fff2e026abc8436 Author: remm <r...@apache.org> 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 dc9f1a2104..116e1c49b8 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 92ee2b845b..eba7edafab 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org