Re: [jexl] using map as script parameter or local variable

2012-07-03 Thread henrib
Bug reproduced, thanks for the report.
Tracked as https://issues.apache.org/jira/browse/JEXL-135 .
Cheers,
Henrib


--
View this message in context: 
http://apache-commons.680414.n4.nabble.com/jexl-using-map-as-script-parameter-or-local-variable-tp4635832p4635864.html
Sent from the Commons - Dev mailing list archive at Nabble.com.

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



Re: [jexl] using map as script parameter or local variable

2012-07-03 Thread sebb
On 3 July 2012 14:12, Kukosa, Tomas  wrote:
> Hello,
>
> I use jexl 2.1.1 and I can not access map passed as a script parameter.

This is off-topic for the Commons dev mailing list

Please subscribe to the user list and ask there.

> When I have the script with 'stat' parameter and following code:
>   var a = state;  ## OK
>   var b = state[3];  ## ERROR
> the first assignment works OK but the second fails with the reason 'undefined 
> variable state'
> Also I can see that the interpreter tried to get 'state' variable from 
> context.
>
> The same result is seen if parameter is assigned to local variable and then 
> it is accessed through it.
>
> Is it a bug or intentional behavior?
>
> Regards,
>   Tomas
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>

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