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 2023/03/27 11:00:00 UTC

[jira] [Closed] (JEXL-354) #pragma does not handle negative integer or real literals

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

Henri Biestro closed JEXL-354.
------------------------------

> #pragma does not handle negative integer or real literals
> ---------------------------------------------------------
>
>                 Key: JEXL-354
>                 URL: https://issues.apache.org/jira/browse/JEXL-354
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: William Price
>            Assignee: Henri Biestro
>            Priority: Major
>             Fix For: 3.3
>
>
> Using 3.2.1, I get a parse exception on the simple JEXL script:
> {code}
> #pragma myInt -1
> {code}
> Throws:
> {noformat}
> org.apache.commons.jexl3.JexlException$Parsing: com.example.Test.testMethod:54@1:15 parsing error in '-'
> 	at app//org.apache.commons.jexl3.JexlEngine.createScript(JexlEngine.java:375)
> {noformat}
> And similar, also for negative real literals such as {{-1.0}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)