Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A5B6DF93 for ; Sun, 16 Sep 2012 02:35:08 +0000 (UTC) Received: (qmail 37311 invoked by uid 500); 16 Sep 2012 02:35:07 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 37276 invoked by uid 500); 16 Sep 2012 02:35:07 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 37268 invoked by uid 99); 16 Sep 2012 02:35:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2012 02:35:07 +0000 Date: Sun, 16 Sep 2012 13:35:07 +1100 (NCT) From: "Brandon Li (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <779433901.85082.1347762907561.JavaMail.jiratomcat@arcas> In-Reply-To: <248194448.85079.1347762487509.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HADOOP-8815) RandomDatum overrides equals(Object) but no hashCode() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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