Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-612

DBRef hashCode is broken

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.7.3
    • 2.9.0
    • API
    • None

    Description

      DBRef (through DBRefBase) defines an equals() method but no hashCode()
      Two equal objects are hashed using Object hashCode() with different hashes.
      add, remove, contains etc. don't work properly for hash based collections.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            orid Ori Dar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: