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 "Hudson (JIRA)" <ji...@apache.org> on 2014/10/01 18:14:44 UTC

[jira] [Commented] (HADOOP-8815) RandomDatum overrides equals(Object) but no hashCode()

    [ https://issues.apache.org/jira/browse/HADOOP-8815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14155012#comment-14155012 ] 

Hudson commented on HADOOP-8815:
--------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #6163 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/6163/])
Fixing CHANGES.txt, moving HADOOP-8815 to 2.6.0 release (arp: rev bc6ce2cb34a638851d3530ca31979db30a8a50bd)
* hadoop-common-project/hadoop-common/CHANGES.txt


> 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.3.4#6332)