Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
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.
Attachments
Issue Links
- related to
-
JAVA-1090 For embedded $regex, BasicBSONObject hashCode() output is not consistent with equals()
-
- Closed
-