[
https://issues.apache.org/jira/browse/WW-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alfredo Osorio updated WW-3523:
-------------------------------
Description:
I'm getting java.lang.IllegalArgumentException when trying to invoke a vararg
method with OGNL.
Here is an example of the method signature:
public String sayHello(String... names);
Expression used to invoke it
sayHello('Alfred', 'John')
assuming that the bean with the method has been pushed ontoo the ValueStack.
I think it has something to do with:
ognl.OgnlRuntime.callAppropriateMethod(...)
and the arguments being sent to:
invokeMethod(target, method, convertedArgs);
was:
I'm getting java.lang.IllegalArgumentException when trying to invoke a vararg
method with OGNL.
Here is an example of the method signature:
public String sayHello(String... names);
Expression used to invoke it
sayHello('Alfred', 'John');
I think it has something to do with:
ognl.OgnlRuntime.callAppropriateMethod(...)
and the arguments being sent to:
invokeMethod(target, method, convertedArgs);
> OGNL Varargs method invocation fails
> ------------------------------------
>
> Key: WW-3523
> URL: https://issues.apache.org/jira/browse/WW-3523
> Project: Struts 2
> Issue Type: Bug
> Components: Expression Language
> Affects Versions: 2.2.1
> Environment: Websphere 6.1
> Reporter: Alfredo Osorio
>
> I'm getting java.lang.IllegalArgumentException when trying to invoke a vararg
> method with OGNL.
> Here is an example of the method signature:
> public String sayHello(String... names);
> Expression used to invoke it
> sayHello('Alfred', 'John')
> assuming that the bean with the method has been pushed ontoo the ValueStack.
> I think it has something to do with:
> ognl.OgnlRuntime.callAppropriateMethod(...)
> and the arguments being sent to:
> invokeMethod(target, method, convertedArgs);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.