[jboss-jira] [JBoss JIRA] (DROOLS-680) "contains" operator behaves inconsistently when used with Maps

Tibor Zimányi (JIRA) issues at jboss.org
Wed Jul 11 07:27:02 EDT 2018


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

Tibor Zimányi closed DROOLS-680.
--------------------------------
    Resolution: Out of Date


Closing this as out of date. I tried to use Map field from a fact in a rule and it never fires based on presumption about contains being used as containsKey. I did this in a loop so the constraint gets also jitted. 

> "contains" operator behaves inconsistently when used with Maps
> --------------------------------------------------------------
>
>                 Key: DROOLS-680
>                 URL: https://issues.jboss.org/browse/DROOLS-680
>             Project: Drools
>          Issue Type: Bug
>    Affects Versions: 5.6.0.Final, 6.0.1.Final, 6.1.0.Final, 6.2.0.CR4
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>
> In a rule
> {code}
> Bean( map contains "x" ) // assuming "map" is a property of type Map
> {code}
> "contains" is arbitrarily interpreted as "containsKey"
> The constrain will then fail after being jitted
> The documentation explicitly states that "contains" applies to collections



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list