BasicBSONObject.equals doesn't handle Number values correctly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.11.3, 3.0.0
    • Affects Version/s: 2.11.2
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Jon Hoffman
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: