[
https://issues.jboss.org/browse/JBRULES-3481?page=com.atlassian.jira.plug...
]
Mario Fusco resolved JBRULES-3481.
----------------------------------
Fix Version/s: 5.4.0.Final
Resolution: Done
Avoid to override equals and hashCode in a declared type with no keys
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
Fix For: 5.4.0.Final
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