JSP unloading code was retaining a reference to the unloaded JSP preventing the assoc...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 19 Sep 2011 13:19:27 +0000 (13:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 19 Sep 2011 13:19:27 +0000 (13:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1172610 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/JspRuntimeContext.java
java/org/apache/jasper/util/FastRemovalDequeue.java

index 7961318..b2bc335 100644 (file)
@@ -250,6 +250,7 @@ public final class JspRuntimeContext {
                                                replaced.getJspUri(), context.getContextPath()));
             }
             unloadJspServletWrapper(replaced);
+            entry.clearReplaced();
         }
         return entry;
     }
index 74a65fd..b43d7e4 100644 (file)
@@ -284,6 +284,10 @@ public class FastRemovalDequeue<T> {
             this.replaced = replaced;
         }
 
+        public final void clearReplaced() {
+            this.replaced = null;
+        }
+        
         private final Entry getNext() {
             return next;
         }