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

equals/hashCode mismatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • Collection, Comparator
    • None
    • 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_1.java
          0.7 kB
          Cyrille Artho
        2. BugReport1.java
          2 kB
          Cyrille Artho

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: