tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49655] New: ExpressionFactoryImpl.createMethodExpression() is not EL 2.2 Spec conform
Date Tue, 27 Jul 2010 14:32:53 GMT

           Summary: ExpressionFactoryImpl.createMethodExpression() is not
                    EL 2.2 Spec conform
           Product: Tomcat 7
           Version: 7.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Servlet & JSP API

org.apache.el.ExpressionFactoryImpl.createMethodExpression(ELContext context,
String expression, Class expectedReturnType, Class[] expectedParamTypes)

does not correctly impl EL Specification 2.2 (Maintenance Release 2 - December
10, 2009)

The spezfication say at site 72 (last paragraph):
expectedParamTypes - The expected parameter types for the method to be found.
Must be an array with no elements if there are no parameters expected. It is
illegal to pass null, unless the method is specified with arugments in the EL
expression, in which case these arguments are used for method selection, and
this parameter is ignored.

The part ", unless the method is specified...." was added in 2.2 and is not

If i call the method with expectedParamTypes == null i get
although expression #{bean.sayHello('World')} has arguments.  

The Sun 2.2.1-b04 el (com.sun.el.ExpressionFactoryImpl) has the same defect.
code looks identical.
JUEL 2.2.1 ( works fine.

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