[jboss-jira] [JBoss JIRA] (JBRULES-3481) hashCode() for declared types without @key fields always yields 1

Mario Fusco (JIRA) jira-events at lists.jboss.org
Mon May 7 10:57:18 EDT 2012


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

Mario Fusco reassigned JBRULES-3481:
------------------------------------

    Assignee: Mario Fusco  (was: Mark Proctor)

    
> hashCode() for declared types without @key fields always yields 1
> -----------------------------------------------------------------
>
>                 Key: JBRULES-3481
>                 URL: https://issues.jboss.org/browse/JBRULES-3481
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.3.1.Final
>            Reporter: Adar Dembo
>            Assignee: Mario Fusco
>
> After calling StatefulKnowledgeSession.getObjects() to retrieve all the objects in my session state, I call each's hashCode() method. All the hashCode() values for declared types without at least one @key return the value 1. This makes them impossible to use in hash-based collections.
> On IRC, etirelli said this is a regression.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list