Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3042

AttributeSource can have an invalid computed state

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.9.4, 3.0.3, 3.1, 3.2, 4.0-ALPHA
    • 2.9.5, 3.0.4, 3.1, 3.2, 4.0-ALPHA
    • modules/analysis
    • None
    • New

    Description

      If you work a tokenstream, consume it, then reuse it and add an attribute to it, the computed state is wrong.
      thus for example, clearAttributes() will not actually clear the attribute added.

      So in some situations, addAttribute is not actually clearing the computed state when it should.

      Attachments

        1. LUCENE-3042.patch
          9 kB
          Uwe Schindler
        2. LUCENE-3042.patch
          8 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: