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

Adar Dembo (JIRA) jira-events at lists.jboss.org
Tue Apr 24 14:21:17 EDT 2012


Adar Dembo created JBRULES-3481:
-----------------------------------

             Summary: 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: Mark Proctor


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