lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Created] (LUCENE-3044) thaiwordfilter uses attributesource.copyTo incorrectly
Date Sun, 24 Apr 2011 14:21:05 GMT
thaiwordfilter uses attributesource.copyTo incorrectly

                 Key: LUCENE-3044
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Robert Muir

The bug can be seen by

It looks like the issue is this lazy initialization of the cloned token: if the tokenstream
is reused
and the consumer is interested in a different set of attributes, it could be a problem.

one probably-probably-not-totally-correct fix would be to add 'clonedToken = null;' to reset(),
least it would solve this case?

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