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

Davide Sottara (JIRA) issues at jboss.org
Fri Jan 9 03:31:29 EST 2015


Davide Sottara created DROOLS-680:
-------------------------------------

             Summary: "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: 6.2.0.CR4, 6.1.0.Final, 6.0.1.Final, 5.6.0.Final
            Reporter: Davide Sottara
            Assignee: Mario Fusco
             Fix For: 6.2.0.Final


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
(v6.3.11#6341)


More information about the jboss-jira mailing list