Implement equality for java.util.Pattern

XMLWordPrintableJSON

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

      BSON that contains a document like

      {"field":{"$regex":"^mypattern"}}
      

      will be translated into a BSONObject object where the value of the field will be an instance of java.util.Pattern, which doesn't implement .equals(). Hence, two logically equivalent BSONObject objects will not considered equal.

            Assignee:
            Unassigned
            Reporter:
            Stephen Lee (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: