[JAVA-2526] BasicDBObject does not implement equals correctly Created: 01/Jun/17  Updated: 08/Dec/17  Resolved: 08/Dec/17

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: 3.3.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Pierre Thibault [X] Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

MacOS 10.12.5



 Description   

Method equals does behave correctly when comparing with a HashMap.



 Comments   
Comment by Jeffrey Yemin [ 08/Dec/17 ]

Closing as Won't Fix:

  1. It's a behavioral change
  2. BasicDBOBject doesn't implement the Map interface, so there is some justification that an instance is not equal to a Map even if they contain similar keys and values
  3. With the new CRUD API, we're encouraging use of the Document class and are no longer making modifications to DBObject-related classes except to fix critical bugs.
Generated at Thu Feb 08 08:57:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.