[JAVA-612] DBRef hashCode is broken Created: 31/Jul/12 Updated: 29/Aug/12 Resolved: 31/Jul/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.7.3 |
| Fix Version/s: | 2.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ori Dar | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
DBRef (through DBRefBase) defines an equals() method but no hashCode() |
| Comments |
| Comment by Jeffrey Yemin [ 29/Aug/12 ] |
|
Closing as part of 2.9.0 release process. |
| Comment by Jeffrey Yemin [ 31/Jul/12 ] |
|
Also changed DBRefBase#equals so that it does not accept sub-classes. Subclasses that need additional fields includes should override equals/hashCode. |
| Comment by auto [ 31/Jul/12 ] |
|
Author: {u'date': u'2012-07-31T05:20:15-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |