[JAVA-2841] BasicBSONObject and BasicDBObject not equal in 3.8.0-beta1 Created: 24/Apr/18 Updated: 28/Oct/23 Resolved: 25/Apr/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 3.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | John Morales | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS X |
||
| Issue Links: |
|
||||
| Description |
|
Example:
Test fails on both 3.7.0-rc0 and 3.8.0-beta1 while passes on 3.6.3:
|
| Comments |
| Comment by Githook User [ 25/Apr/18 ] | ||||||
|
Author: {'email': 'ross.lawley@gmail.com', 'username': 'rozza', 'name': 'Ross Lawley'}Message: Relax type comparision in BasicDBObject#equals Allow comparison against other BSONObject types
| ||||||
| Comment by Githook User [ 25/Apr/18 ] | ||||||
|
Author: {'email': 'ross.lawley@gmail.com', 'username': 'rozza', 'name': 'Ross Lawley'}Message: Relax type comparision in BasicDBObject#equals Allow comparison against other BSONObject types
| ||||||
| Comment by Jeffrey Yemin [ 24/Apr/18 ] | ||||||
|
It's not symmetrical, as this test passes:
| ||||||
| Comment by Jeffrey Yemin [ 24/Apr/18 ] | ||||||
|
https://github.com/mongodb/mongo-java-driver/commit/66531c9601f622711e4190a8358275611e395801 looks like what broke it. |