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 "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2014/08/29 00:15:10 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 ]

Alejandro Abdelnur updated HADOOP-8815:
---------------------------------------

    Fix Version/s:     (was: 3.0.0)
                   2.6.0

> 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
>             Fix For: 2.6.0
>
>         Attachments: HADOOP-8815.patch, 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 was sent by Atlassian JIRA
(v6.2#6252)