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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.7.2
    • API

    Description

      `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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: