thaiwordfilter uses attributesource.copyTo incorrectly
------------------------------------------------------

                 Key: LUCENE-3044
                 URL: https://issues.apache.org/jira/browse/LUCENE-3044
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Robert Muir


The bug can be seen by 
https://builds.apache.org/hudson/job/Lucene-Solr-tests-only-3.x/7367/

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(), at 
least it would solve this case?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to