Say I declare a function:

public void fn(String s1, Object [] s2);

This function is then added to a JEXL context and referenced in an
expression thus:

fn('hello', ['a', 'b', 'c']);

This invokes the function with the argument ['a', 'b', 'c']  wrapped in
another array. 

Thus, s2[0] ==  ['a', 'b', 'c'] as opposed to s2 == ['a', 'b', 'c'] in the
function.

I will be happy to submit a patch . for now I have worked around this by
declaring the function differently.

I now declare:

public void fn(String s1, String . s2);

and invoke it as:

fn('hello', 'a', 'b', 'c');

which does the right thing.

- Vishal





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to