You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2011/04/22 22:52:05 UTC
[jira] [Updated] (LUCENE-3042) AttributeSource can have an invalid
computed state
[ https://issues.apache.org/jira/browse/LUCENE-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe Schindler updated LUCENE-3042:
----------------------------------
Attachment: LUCENE-3042.patch
Here a quick patch using a reference (1-ele array) to the state that is shared between all AttributeSources
> AttributeSource can have an invalid computed state
> --------------------------------------------------
>
> Key: LUCENE-3042
> URL: https://issues.apache.org/jira/browse/LUCENE-3042
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: Robert Muir
> Assignee: Uwe Schindler
> Attachments: 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: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org