William Price created JEXL-354:
----------------------------------

             Summary: #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


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.1#820001)

Reply via email to