lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3042) AttributeSource can have an invalid computed state
Date Fri, 22 Apr 2011 21:14:46 GMT


Uwe Schindler updated LUCENE-3042:

    Attachment: LUCENE-3042.patch

New patch, that makes the code simplier to read:

- I replaced the computeCurrentState by a  getter method that does the check and returns the
- This makes it easier to use and removes lots of checks even for hasAttributes()
- Now, most methods using State now only consist of the for Loop.

> AttributeSource can have an invalid computed state
> --------------------------------------------------
>                 Key: LUCENE-3042
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Uwe Schindler
>         Attachments: LUCENE-3042.patch, LUCENE-3042.patch
> 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.

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message