[ 
https://issues.apache.org/jira/browse/JEXL-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17502327#comment-17502327
 ] 

Henri Biestro commented on JEXL-361:
------------------------------------

Unfortunately the culprit is not the arithmetic but the Interpreter(Base) 
trying to catch errors early. It is doubly unfortunate since fixing the issue 
results in breaking existing scripts. Need a 3.2 compatibility Engine... 

> Null may be used as operand silently even in arithmetic strict(true) mode
> -------------------------------------------------------------------------
>
>                 Key: JEXL-361
>                 URL: https://issues.apache.org/jira/browse/JEXL-361
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Major
>             Fix For: 3.3
>
>
> It appears null may be used as an operator argument despite arithmetic 
> strictness.
> {code}
> var i = null;
> if (i < 0) {...}
> {code}
> Should fail when arithmetic is strict.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to