[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Updated] (JEXL-354) #pragma does not handle negative integer or real literals
From:       "Henri Biestro (Jira)" <jira () apache ! org>
Date:       2021-11-30 17:21:00
Message-ID: JIRA.13413930.1637896128000.79708.1638292860275 () Atlassian ! JIRA
[Download RAW message or body]


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

Henri Biestro updated JEXL-354:
-------------------------------
    Assignee: Henri Biestro

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic