commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dion gillard (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JEXL-25) Call method with varargs
Date Tue, 10 Oct 2006 15:18:20 GMT
     [ http://issues.apache.org/jira/browse/JEXL-25?page=all ]

dion gillard updated JEXL-25:
-----------------------------

    Issue Type: New Feature  (was: Bug)

> Call method with varargs
> ------------------------
>
>                 Key: JEXL-25
>                 URL: http://issues.apache.org/jira/browse/JEXL-25
>             Project: Commons JEXL
>          Issue Type: New Feature
>    Affects Versions: 1.1
>         Environment: All
>            Reporter: Marek Lewczuk
>            Priority: Critical
>
> Jexl doesn't allow for using method with varargs - method cannot be found and because
of that expression returns null. Try following code:
> class TestClass  {
>  public String testVarArgs (Integer... args) {
>   return "Test";
>  }
> }
> String jexlExp = "test.testVarArgs(1,2,3,4,5)";
> Expression e = ExpressionFactory.createExpression(jexlExp);
> JexlContext jc = JexlHelper.createContext();
> jc.getVars().put("test", new TestClass());
> Object o = e.evaluate(jc);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message