commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (JEXL-111) expression execute error
Date Wed, 14 Dec 2011 09:34:31 GMT

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

Sebb closed JEXL-111.
---------------------

    
> expression execute error
> ------------------------
>
>                 Key: JEXL-111
>                 URL: https://issues.apache.org/jira/browse/JEXL-111
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>         Environment: sun hotspot
>            Reporter: freish
>            Assignee: Henri Biestro
>            Priority: Minor
>              Labels: bsf
>             Fix For: 2.1
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message