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

XMLWordPrintableJSON

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

      `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:
              Jeffrey Yemin
              Reporter:
              Alexander Azarov
              None
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: