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

DBRef hashCode is broken

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.9.0
    • Affects Version/s: 2.7.3
    • Component/s: API
    • None

      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.

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

              Created:
              Updated:
              Resolved: