-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels: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.
- related to
-
JAVA-1090 For embedded $regex, BasicBSONObject hashCode() output is not consistent with equals()
- Closed