From: markt Date: Sun, 27 Apr 2008 17:19:48 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=44877 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=194ca384cd1547ab2cd036b315c651c0326b382f;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=44877 Prevent collisions in tag pool names git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@651984 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index 5c6ab6867..a4d57f173 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -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]; }