[
https://issues.apache.org/jira/browse/JEXL-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Biestro resolved JEXL-24.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.0.2
Assignee: Henri Biestro
Committed revision 1135562.
M src/test/java/org/apache/commons/jexl2/IssuesTest.java
M src/test/java/org/apache/commons/jexl2/ArithmeticTest.java
M src/main/java/org/apache/commons/jexl2/Interpreter.java
M src/main/java/org/apache/commons/jexl2/parser/Parser.jjt
D src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java
D src/main/java/org/apache/commons/jexl2/parser/ASTFloatLiteral.java
A + src/main/java/org/apache/commons/jexl2/parser/ASTNumberLiteral.java
M src/main/java/org/apache/commons/jexl2/JexlArithmetic.java
M src/main/java/org/apache/commons/jexl2/Debugger.java
M
src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java
Also fixes JEXL-112; the fix adds syntax for literals of type double, big
decimal, long and
big integer.
> Support Long for integer literal instead of Integers
> ----------------------------------------------------
>
> Key: JEXL-24
> URL: https://issues.apache.org/jira/browse/JEXL-24
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 1.1, 2.0
> Reporter: dion gillard
> Assignee: Henri Biestro
> Priority: Minor
> Fix For: 2.0.2
>
> Attachments: JEXL-24.patch.txt
>
>
> Manisha Athavale reports:
> Hello,
> We use the jexl 1.1 jar for simple expression evaluation. The parser
> throws number format exception when gave expression like "3988514195 - SP".
> What is the limit for constants used in expression? Actually, there should
> not be any limit for constants in the expression, is it correct?
> Integer literals (such as the one above) are bound by Integer.MAX_VALUE. You
> may have better luck changing the value to 3988514195.0
> Consider this a request for integer literals to be stored as Longs
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira