[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to