You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Closed) (JIRA)" <ji...@apache.org> on 2011/12/14 10:38:31 UTC

[jira] [Closed] (JEXL-117) JEXL not evaluating java Long

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

Sebb closed JEXL-117.
---------------------

    
> JEXL not evaluating java Long
> -----------------------------
>
>                 Key: JEXL-117
>                 URL: https://issues.apache.org/jira/browse/JEXL-117
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Dave Marion
>            Assignee: Henri Biestro
>              Labels: Long, NumberFormatException
>             Fix For: 2.1
>
>
> Trying to evaluate a long in a Jexl expression and the engine tries to cast it to an Integer.
> Expression e = engine.createExpression("TIMESTAMP > 20100102000000");
> JexlContext ctx = new MapContext();
> ctx.set("TIMESTAMP", new Long("20100103000000"));
> e.evaluate(ctx);
> throws a NumberFormatException  at Integer.parseInt().

--
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