Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1207

equals method should compare this and other of DocList in DocSetBase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0, 1.2, 1.3, 1.4
    • 1.4
    • search
    • None

    Description

      There is a fault in equals method of DocSetBase class:

      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
      }
      

      Attachments

        Activity

          People

            koji Koji Sekiguchi
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: