[JAVA-472] WriteConcern equals uses == instead of equals() for _w object and no hashcode() impl Created: 15/Nov/11 Updated: 18/Jun/12 Resolved: 11/Mar/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.7 |
| Fix Version/s: | 2.8.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Mark Pollack | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 |
||
| Backwards Compatibility: | Minor Change |
| Description |
|
This test will fail since WriteConcern's equals methods uses == and not equals() for the _w field. I noticed this when testing the new API to pass a string into the WriteConcern constructor. Here is a failing test case
|
| Comments |
| Comment by Jeffrey Yemin [ 18/Jun/12 ] |
|
Closing for 2.8.0 release. |
| Comment by auto [ 11/Mar/12 ] |
|
Author: {u'login': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |