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

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

    XMLWordPrintable

Details

    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)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: