Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3481

hashCode() for declared types without @key fields always yields 1

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.4.0.Final
    • 5.3.1.Final
    • drools-core
    • None

    Description

      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.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            hltbdivl_jira Adar Dembo (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty