[JAVA-905] BasicBSONObject.equals doesn't handle Number values correctly Created: 30/Jul/13 Updated: 31/Mar/15 Resolved: 19/Aug/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | 2.11.2 |
| Fix Version/s: | 2.11.3, 3.0.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jon Hoffman | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Number.doubleValue is compared, but that will drop precision from a large Long value and falsely consider two different Numbers to be equal. Pull request here: https://github.com/mongodb/mongo-java-driver/pull/133 |
| Comments |
| Comment by Jeffrey Yemin [ 31/Mar/15 ] |
|
Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released. |
| Comment by auto [ 12/Sep/13 ] |
|
Author: {u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}Message: Merge pull request #133 from foursquare/bsonequals
|
| Comment by auto [ 12/Sep/13 ] |
|
Author: {u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}Message: Merge pull request #133 from foursquare/bsonequals
|
| Comment by auto [ 16/Aug/13 ] |
|
Author: {u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}Message: fix(driver-compat) |
| Comment by auto [ 16/Aug/13 ] |
|
Author: {u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}Message: Merge pull request #133 from foursquare/bsonequals
|
| Comment by Uladzimir Mihura [ 16/Aug/13 ] |
|
Thank you Jon for your ticket and pull request. I'm going to merge it, but actually I think that it was a bad idea to compare Number subclasses to each other. |