jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
68 stars 49 forks source link

Java Identifiers should not be allowed #31

Closed glassfishrobot closed 2 years ago

glassfishrobot commented 11 years ago

Tomcat 7 refuses usage of Java Identifiers as per JLS to be used as identifiers in EL expressions.

As seen in this discussion https://issues.apache.org/bugzilla/show_bug.cgi?id=49217, the Tomcat developers decided that to be spec compliant they had to refuse Java Identifiers.

It is confusing that com.sun.el, (being the reference implementation?) breaks the spec by not validating identifiers.

The result is that JSP code that is tested/developed on com.sun.el fails when run on Tomcat 7.

I suggest that com.sun.el adds validation of identifiers. Preferably, this should be configurable similar to Jasper's org.apache.el.parser. SKIP_IDENTIFIER_CHECK system property.

For reference, here's Tomcat's implementation of the validation logic:

http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/el/util/Validation.java

glassfishrobot commented 6 years ago
glassfishrobot commented 11 years ago

@glassfishrobot Commented Reported by eirbjor

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA UEL-31