Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-354

#pragma does not handle negative integer or real literals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3
    • None

    Description

      Using 3.2.1, I get a parse exception on the simple JEXL script:

      #pragma myInt -1
      

      Throws:

      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)
      

      And similar, also for negative real literals such as -1.0.

      Attachments

        Activity

          People

            henrib Henri Biestro
            wrprice William Price
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: