Lucene - Core
  1. Lucene - Core
  2. LUCENE-3042

AttributeSource can have an invalid computed state

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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.

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

        Activity

        Robert Muir created issue -
        Uwe Schindler made changes -
        Field Original Value New Value
        Assignee Uwe Schindler [ thetaphi ]
        Uwe Schindler made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3042.patch [ 12477162 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3042.patch [ 12477167 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3042.patch [ 12477167 ]
        Uwe Schindler made changes -
        Attachment LUCENE-3042.patch [ 12477168 ]
        Uwe Schindler made changes -
        Fix Version/s 3.2 [ 12316070 ]
        Fix Version/s 4.0 [ 12314025 ]
        Affects Version/s 3.1 [ 12314822 ]
        Affects Version/s 3.0.3 [ 12315147 ]
        Affects Version/s 2.9.4 [ 12315148 ]
        Affects Version/s 3.2 [ 12316070 ]
        Affects Version/s 4.0 [ 12314025 ]
        Priority Major [ 3 ] Critical [ 2 ]
        Component/s Analysis [ 12310230 ]
        Uwe Schindler made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Fix Version/s 2.9.5 [ 12315914 ]
        Fix Version/s 3.0.4 [ 12315913 ]
        Fix Version/s 3.1 [ 12314822 ]
        Robert Muir made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development