[jboss-jira] [JBoss JIRA] (DROOLS-1465) not() unary test is short circuiting in the presence of null

Edson Tirelli (JIRA) issues at jboss.org
Mon Mar 6 20:12:00 EST 2017


     [ https://issues.jboss.org/browse/DROOLS-1465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli updated DROOLS-1465:
----------------------------------
    Description: 
not() unary tests as it is short-circuiting in some cases without checking all the elements. E.g.:

10 in ( not( null, 10 ) )  ----> short circuits and returns true when it should be false
null in ( not( 10, null ) ) -----> short circuits and returns true when it should be false


  was:
Grammar rule #17 prevents not() from being used as part of a unary test list. Needs to be fixed in the engine.

Also, there seems to be a bug on the creation of not() unary tests as it is short-circuiting in some cases without checking all the elements.



> not() unary test is short circuiting in the presence of null
> ------------------------------------------------------------
>
>                 Key: DROOLS-1465
>                 URL: https://issues.jboss.org/browse/DROOLS-1465
>             Project: Drools
>          Issue Type: Bug
>          Components: dmn engine
>    Affects Versions: 7.0.0.Beta6
>            Reporter: Edson Tirelli
>            Assignee: Edson Tirelli
>             Fix For: 7.0.0.Final
>
>
> not() unary tests as it is short-circuiting in some cases without checking all the elements. E.g.:
> 10 in ( not( null, 10 ) )  ----> short circuits and returns true when it should be false
> null in ( not( 10, null ) ) -----> short circuits and returns true when it should be false



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list