Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46397
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 23 Dec 2008 18:31:04 +0000 (18:31 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 23 Dec 2008 18:31:04 +0000 (18:31 +0000)
Don't pool tag instances that implement JspIdConsumer

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@729057 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/Generator.java

index 483feeb..201e1cc 100644 (file)
@@ -2423,7 +2423,7 @@ class Generator {
                 out.println(".doFinally();");
             }
 
-            if (isPoolingEnabled) {
+            if (isPoolingEnabled && !(n.implementsJspIdConsumer())) {
                 out.printin(n.getTagHandlerPoolName());
                 out.print(".reuse(");
                 out.print(tagHandlerVar);