BsonDocument.equals should consider field order

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When comparing two BsonDocuments using the BsonDocuments.equals() method the order of the fields does not seem to be considered.

      Currently {a:1, b:1}.equals({b:1,a:1})  evaluates to true for BsonDocuments. For documents the expected behavior would be that documents are only considered to be same if the field order is the same. 

              Assignee:
              Unassigned
              Reporter:
              Kai Orend
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: