[ 
https://issues.apache.org/jira/browse/JEXL-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henri Biestro updated JEXL-101:
-------------------------------

    Fix Version/s: 2.0.2

Good catch and thanks for the patch.

There are in facts 2 causes:
The varargs handling in MethodExecutor.handleVarArgs which does not property 
address all cases (number parms, number args, null).
But also the compatibility check made performed by MethodKey.isApplicable which 
does not cover check the type of parameters before the vararg.
I should commit a fix in the trunk soon.

> Vararg methods where the first argument is no vararg can not be called with 
> only the fixed parameters given
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: JEXL-101
>                 URL: https://issues.apache.org/jira/browse/JEXL-101
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Tobias Schulte
>            Assignee: Henri Biestro
>             Fix For: 2.0.2
>
>         Attachments: jexl-varargs.patch
>
>
> When you have a public String testVarArgsMixed(Integer fixed, Integer[] args) 
> in a class Test, put a test instance in the context and evaluate the 
> expression test.testVarArgsMixed(1), the MethodExecutor is not able to find 
> the method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to