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
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:
Hello,
I use jexl 2.1.1 and I can not access map passed as a script parameter.
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