tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50194] ELParsing fails when an expression with function contains a dash (minus) on and up
Date Fri, 12 Nov 2010 18:53:23 GMT

Mark Thomas <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Mark Thomas <> 2010-11-12 13:53:18 EST ---
There are a handful of different specifications involved here.

First of all there is the JSP 2.1 specification. It states in Table JSP.1-9
A prefix must follow the naming convention specified in the XML namespaces
So far so good, '-' is permitted by the XML namespaces specification.

Then we move to the EL 2.1 specification. Unfortunately, it is more
restrictive. 1.15 defines the syntax as:
where ns is a namespace. Again, so far so good.

However in the collected syntax there is the following:
FunctionInvocation::=(Identifier ‘:’)? Identifier ‘(‘ 
                     ( Expression ( ‘,’ Expression )* )? ‘)’
Identifier ::= Java language identifier

So the namespace also has to comply with the rules for Java Language
Identifiers which do not permit the use of '-'.

Tomcat's EL processing has been made gradually more specification compliant as
bugs have been raised that highlight various issues caused by a relaxed
interpretation of the specification. I suspect the change between 6.0.18 and
6.0.29 was as a result of one of these.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message