commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kukosa, Tomas" <>
Subject [jexl] Unexpected Integer -> Byte conversion
Date Wed, 04 Jul 2012 07:42:26 GMT

if I pass variable containing Integer value to the script with parameters the parameter inside
the script gets the value as Byte.
It is not a problem e.g. for arithmetic expressions.
The problem occurs if I try to access map wit this numeric value. The map has numeric keys
as Integer and accessing with Byte fails.

Is there any better way how to solve it than using MY_MAP[1*idx] in all places where I could
expect that idx could be a Byte value?

(using jexl 2.1.1)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message