From 043c1acb3b9ddd67442d9e0010ed567084777be1 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 11 Apr 2011 22:33:50 +0000 Subject: [PATCH] Revert fix https://issues.apache.org/bugzilla/show_bug.cgi?id=36362 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 | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/java/org/apache/jasper/compiler/Parser.java b/java/org/apache/jasper/compiler/Parser.java index 2abcece40..d7be14c01 100644 --- a/java/org/apache/jasper/compiler/Parser.java +++ b/java/org/apache/jasper/compiler/Parser.java @@ -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); } -- 2.11.0