You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2012/05/01 22:36:52 UTC

[jira] [Updated] (JEXL-126) Decimal numbers literals should be 'double' by default (instead of 'float')

     [ https://issues.apache.org/jira/browse/JEXL-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro updated JEXL-126:
-------------------------------

    Fix Version/s: 2.1.2

Fixed in 2.1.2 through commit Revision: 1332806
jexl2/pom.xml
jexl2/src/main/java/org/apache/commons/jexl2/Interpreter.java
jexl2/src/main/java/org/apache/commons/jexl2/JexlArithmetic.java
jexl2/src/main/java/org/apache/commons/jexl2/JexlEngine.java
jexl2/src/main/java/org/apache/commons/jexl2/JexlException.java
jexl2/src/main/java/org/apache/commons/jexl2/ObjectContext.java
jexl2/src/main/java/org/apache/commons/jexl2/UnifiedJEXL.java
>>
jexl2/src/main/java/org/apache/commons/jexl2/parser/ASTNumberLiteral.java
>>
jexl2/src/test/java/org/apache/commons/jexl2/ArithmeticTest.java
jexl2/src/test/java/org/apache/commons/jexl2/ArrayLiteralTest.java
jexl2/src/test/java/org/apache/commons/jexl2/ExceptionTest.java
jexl2/src/test/java/org/apache/commons/jexl2/IssuesTest.java
Revision: 1332806
                
> Decimal numbers literals should be 'double' by default (instead of 'float')
> ---------------------------------------------------------------------------
>
>                 Key: JEXL-126
>                 URL: https://issues.apache.org/jira/browse/JEXL-126
>             Project: Commons JEXL
>          Issue Type: Improvement
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 2.1.2, 3.0
>
>
> Since Jexl 1.x, decimal number literals are 'float'; it would be more natural (pun unintended) to create 'double' instead since they are used more often (reduce 'surprise' effects).
> Note that since 2.1, numbers literals notations allow typing; '123f' is a float literal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira