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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]