Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
Description
Cannot parse Integer.MIN_VALUE, because parsing does not take account of the sign.
Sample code to show the error:
JEXL = new JexlEngine(); JEXL.createScript(Integer.toString(Integer.MAX_VALUE)); // OK JEXL.createScript(Integer.toString(Integer.MIN_VALUE+1)); // OK JEXL.createScript(Integer.toString(Integer.MIN_VALUE)); // FAILS with java.lang.NumberFormatException: For input string: "2147483648"
Note that the input does not include the minus sign, which is presumably going to be applied later.
Attachments
Issue Links
- is related to
-
JEXL-24 Support Long for integer literal instead of Integers
- Closed