lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SOLR-1207) equals method should compare this and other of DocList in DocSetBase
Date Mon, 08 Jun 2009 02:30:07 GMT

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

Koji Sekiguchi resolved SOLR-1207.
----------------------------------

    Resolution: Fixed
      Assignee: Koji Sekiguchi

All tests pass.
Committed revision 782506.

> equals method should compare this and other of DocList in DocSetBase
> --------------------------------------------------------------------
>
>                 Key: SOLR-1207
>                 URL: https://issues.apache.org/jira/browse/SOLR-1207
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.1.0, 1.2, 1.3, 1.4
>            Reporter: Koji Sekiguchi
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 1.4
>
>
> There is a fault in equals method of DocSetBase class:
> {code}
> if (this instanceof DocList && other instanceof DocList) {
>   // compare ordering
>   DocIterator i1=this.iterator();
>   DocIterator i2=this.iterator();       // <== *this should be other*
>   while(i1.hasNext() && i2.hasNext()) {
>     if (i1.nextDoc() != i2.nextDoc()) return false;
>   }
>   return true;
>   // don't compare matches
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message