Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=44877
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Apr 2008 17:19:48 +0000 (17:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Apr 2008 17:19:48 +0000 (17:19 +0000)
Prevent collisions in tag pool names

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

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

index 5c6ab68..a4d57f1 100644 (file)
@@ -294,6 +294,9 @@ class Generator {
                         attrNames[i] = attrs.getQName(i);
                     }
                     Arrays.sort(attrNames, Collections.reverseOrder());
+                    if (attrNames.length > 0) {
+                        poolName = poolName + "&";
+                    }
                     for (int i = 0; i < attrNames.length; i++) {
                         poolName = poolName + "_" + attrNames[i];
                     }