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

AttributeSource can have an invalid computed state

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 3.0.3, 3.1, 3.2, 4.0-ALPHA
    • Fix Version/s: 2.9.5, 3.0.4, 3.1, 3.2, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: