Revert fix https://issues.apache.org/bugzilla/show_bug.cgi?id=36362
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 11 Apr 2011 22:33:50 +0000 (22:33 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 11 Apr 2011 22:33:50 +0000 (22:33 +0000)
JSP.8.3 does not limit the name of attributes defined in tag files

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

java/org/apache/jasper/compiler/Parser.java

index 2abcece..d7be14c 100644 (file)
@@ -593,18 +593,6 @@ class Parser implements TagConstants {
      */
     private void parseAttributeDirective(Node parent) throws JasperException {
         Attributes attrs = parseAttributes();
-        // JSP.8.3 says the variable created for each attribute must have the
-        // same name as the attribute. Therefore, the names must be valid Java
-        // identifiers
-        if (attrs != null && attrs.getLength() > 0) {
-            for (int i = 0; i < attrs.getLength(); i++) {
-                if ("name".equals(attrs.getLocalName(i)) &&
-                        !JspUtil.isJavaIdentifier(attrs.getValue(i))) {
-                    err.jspError(start, "jsp.error.identifier",
-                            attrs.getValue(i));
-                }
-            }
-        }
         new Node.AttributeDirective(attrs, start, parent);
     }