[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3066) Null comparison broken when accessing map content

Tomáš Schlosser (JIRA) jira-events at lists.jboss.org
Tue Jun 7 07:19:59 EDT 2011


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

Tomáš Schlosser updated JBRULES-3066:
-------------------------------------

    Attachment: neq.drl
                NeqTest.java
                Person.java


> Null comparison broken when accessing map content
> -------------------------------------------------
>
>                 Key: JBRULES-3066
>                 URL: https://issues.jboss.org/browse/JBRULES-3066
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.2.0.CR1
>            Reporter: Tomáš Schlosser
>            Assignee: Mark Proctor
>         Attachments: neq.drl, NeqTest.java, Person.java
>
>
> Comparing item from map to null (to see if given key has a value) gives wrong results.
> The example included results in:
> has mother
> has father
> has mother (using not)
> has father (using not)
> Whereas the right result should be (as is in 5.1):
> doesn't have mother
> has father
> doesn't have mother (using not)
> has father (using not)
> Since the value for for key "mother" is not defined.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list