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

Support Long for integer literal instead of Integers

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1, 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      Manisha Athavale reports:

      Hello,

      We use the jexl 1.1 jar for simple expression evaluation. The parser throws number format exception when gave expression like "3988514195 - SP". What is the limit for constants used in expression? Actually, there should not be any limit for constants in the expression, is it correct?

      Integer literals (such as the one above) are bound by Integer.MAX_VALUE. You may have better luck changing the value to 3988514195.0

      Consider this a request for integer literals to be stored as Longs

        Attachments

        1. JEXL-24.patch.txt
          14 kB
          dion gillard

          Issue Links

            Activity

              People

              • Assignee:
                henrib Henri Biestro
                Reporter:
                diongillard dion gillard
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: