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

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Wed Jul 20 13:17:23 EDT 2011


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

Edson Tirelli closed JBRULES-3066.
----------------------------------



> 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: Edson Tirelli
>             Fix For: 5.2.1.Final, 5.3.0.Beta1
>
>         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