https://issues.apache.org/bugzilla/show_bug.cgi?id=48914

           Summary: EL MethodExpression behavior incorrect
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: robert_goff...@yahoo.com


When dealing with the new [] and . operators in the EL specification, the
specification says: "If the expression is a MethodExpression, then calling its
invoke method causes the method to be invoked, and the parameters params for
the invoke method will be ignored, since those specified in EL will be used." 
The behavior in Tomcat 7 is different as it uses the values specified in the
invoke method.

This can be tested by doing something like this:
        MethodExpression myMethodExpression = fact.createMethodExpression(ctxt,
"#{myBean[myStringExpression]('using brackets in EL')}", String.class, new
Class<?>[] {String.class});
        Object myMethodReturn = myMethodExpression.invoke(ctxt, new String[]
{"using brackets"});
        pw.println("myMethodReturn="+myMethodReturn);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to