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

BasicBSONObject.equals doesn't handle Number values correctly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.3, 3.0.0
    • Affects Version/s: 2.11.2
    • Component/s: BSON
    • None

      Number.doubleValue is compared, but that will drop precision from a large Long value and falsely consider two different Numbers to be equal.

      Pull request here: https://github.com/mongodb/mongo-java-driver/pull/133

            Assignee:
            Unassigned Unassigned
            Reporter:
            hoffrocket Jon Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: