Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1
    • Labels:
    • Environment:

      sun hotspot

      Description

      i run jexl with bsf3.1. The jars are:bsf-api-3.1.jar,commons-jexl-2.0.1.jar and commons-logging-1.1.1.jar.
      the express is as follows:
      "((x>0)?\"FirstValue\"+(y-x):\"SecondValue\"+x)".
      however the value y is ,if x is a integer,the expression get right.but if x is a float point number such as 1.0,an Exception is thrown:
      org.apache.commons.jexl2.JexlException: org.apache.commons.jexl2.scripting.JexlScriptEngine.eval@214![0,5]: 'x > 0? 'FirstValue' + y - x : 'SecondValue' + x;' > error

      Then,what's the matter with this?

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              freish freish
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified