commons-user mailing list archives

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

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)

Regards,
  Tomas

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


Mime
View raw message