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 2019/11/04 17:12:28 UTC

[tomcat] branch 7.0.x updated: Fix a possible race condition

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

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new c83abec  Fix a possible race condition
c83abec is described below

commit c83abecb09c82ce58ae0876216ac3363c9581c6c
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Nov 4 17:09:59 2019 +0000

    Fix a possible race condition
---
 java/org/apache/jasper/JspCompilationContext.java | 2 +-
 webapps/docs/changelog.xml                        | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java
index 0c4fed6..a757141 100644
--- a/java/org/apache/jasper/JspCompilationContext.java
+++ b/java/org/apache/jasper/JspCompilationContext.java
@@ -88,7 +88,7 @@ public class JspCompilationContext {
 
     protected volatile boolean removed = false;
 
-    protected URLClassLoader jspLoader;
+    protected volatile URLClassLoader jspLoader;
     protected URL baseUrl;
     protected Class<?> servletClass;
 
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 8315545..554e3e1 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -117,6 +117,10 @@
         condition if the JSP is modified during compilation. Patch provided by
         Karl von Randow. (markt)
       </fix>
+      <fix>
+        Fix a race condition that could mean changes to a modified JSP were not
+        visible to end users. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Web applications">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org