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 2019/04/01 14:05:00 UTC

[jira] [Resolved] (JEXL-296) Real literal in scientific format is not parsed without suffix

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

Henri Biestro resolved JEXL-296.
--------------------------------
    Resolution: Fixed

Changeset: bf6d0dd4c11221c13df11a364339765586fac18e
Author:    henrib <he...@apache.org>
Date:      2019-04-01 16:03
Message:   JEXL-296: fix grammar, add test

> Real literal in scientific format is not parsed without suffix
> --------------------------------------------------------------
>
>                 Key: JEXL-296
>                 URL: https://issues.apache.org/jira/browse/JEXL-296
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Dmitri Blinov
>            Priority: Major
>
> I have found that in current implementation the {{testRealLiteralScript()}} fails with ambigous statement error 
> {code:java}
>     @Test
>     public void testRealLiteralScript() throws Exception {
>         JexlContext jc = new MapContext();
>         Object o;
>         o = JEXL.createScript("1e10").execute(jc);
>         Assert.assertEquals(1e10, o);
>     }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)