Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-512

equals/hashCode mismatch

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: Collection, Comparator
    • Labels:
      None
    • Environment:

      Mac OS 10.9, Java 6 and Java 7

      Description

      We used Randoop on the collection classes, which found several test cases where two objects are equal but their hash code differs.

      I will attach a file containing two test cases that are different; the other tests seem to be longer versions showing the same issue.

        Attachments

        1. BugReport1.java
          2 kB
          Cyrille Artho
        2. BugReport1_1.java
          0.7 kB
          Cyrille Artho

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Telcontar Cyrille Artho
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: