lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (LUCENE-2417) Fix IndexCommit hashCode() and equals() to be consistent
Date Sun, 30 May 2010 14:38:35 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless reopened LUCENE-2417:
----------------------------------------


backport

> 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: 2.9.3, 3.0.2, 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


Mime
View raw message