You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Brandon Li (JIRA)" <ji...@apache.org> on 2012/09/16 04:35:07 UTC
[jira] [Updated] (HADOOP-8815) RandomDatum overrides equals(Object)
but no hashCode()
[ https://issues.apache.org/jira/browse/HADOOP-8815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Li updated HADOOP-8815:
-------------------------------
Attachment: HADOOP-8815.patch
> RandomDatum overrides equals(Object) but no hashCode()
> ------------------------------------------------------
>
> Key: HADOOP-8815
> URL: https://issues.apache.org/jira/browse/HADOOP-8815
> Project: Hadoop Common
> Issue Type: Improvement
> Components: test
> Affects Versions: 3.0.0
> Reporter: Brandon Li
> Assignee: Brandon Li
> Priority: Minor
> Attachments: HADOOP-8815.patch
>
>
> Override equal() but not hashCode() is a violation of the general contract for Object.hashCode will occur, which can have unexpected repercussions when this class is in conjunction with all hash-based collections.
> This test class is used in multiple places, so it may be worth fixing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira