hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8815) RandomDatum overrides equals(Object) but no hashCode()
Date Tue, 25 Sep 2012 03:53:08 GMT

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

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

Integrated in Hadoop-Common-trunk-Commit #2765 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2765/])
    HADOOP-8815. RandomDatum needs to override hashCode(). Contributed by Brandon Li. (Revision
1389661)

     Result = SUCCESS
suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389661
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/RandomDatum.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodec.java

                
> 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: 3.0.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 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

Mime
View raw message