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

(DB/BSON)Object "equals" method is broken

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.2
    • Component/s: API
    • Labels:

      `equals` on DBObjects compares arrays using arr.equals(other), but this Java method returns "false" always. Arrays.equals should be used: http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#equals%28java.lang.Object[],%20java.lang.Object[]%29

      This means, there is no way to compare two DBObjects when they contain arrays.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            alaz Alexander Azarov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: