Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 82292 invoked from network); 5 May 2010 16:55:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 May 2010 16:55:28 -0000 Received: (qmail 36313 invoked by uid 500); 5 May 2010 16:55:26 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 36264 invoked by uid 500); 5 May 2010 16:55:26 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 36257 invoked by uid 99); 5 May 2010 16:55:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 16:55:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 16:55:24 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o45Gt2dK029223 for ; Wed, 5 May 2010 16:55:02 GMT Message-ID: <19861052.24631273078502712.JavaMail.jira@thor> Date: Wed, 5 May 2010 12:55:02 -0400 (EDT) From: "Shai Erera (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2417) Fix IndexCommit hashCode() and equals() to be consistent In-Reply-To: <5932380.57271272459931388.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shai Erera updated LUCENE-2417: ------------------------------- Fix Version/s: 3.1 > Fix IndexCommit hashCode() and equals() to be consistent > -------------------------------------------------------- > > Key: LUCENE-2417 > URL: https://issues.apache.org/jira/browse/LUCENE-2417 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Reporter: Shai Erera > Assignee: Shai Erera > Fix For: 3.1, 4.0 > > Attachments: LUCENE-2417.patch > > > IndexCommit's impl of hashCode() and equals() is inconsistent. One uses Dir + version and the other uses Dir + equals. According to hashCode()'s javadoc, if o1.equals(o2), then o1.hashCode() == o2.hashCode(). Simple fix, and I'll add a test case. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org