[ 
https://issues.apache.org/jira/browse/LUCENE-1919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756944#action_12756944
 ] 

Robert Muir commented on LUCENE-1919:
-------------------------------------

{quote}
Is there any sort of shared state in the analyzing, possibly
between instances that is fixed in this patch?
{quote}

Yes. if for instance you call foo = ts.next(reusableToken), then call bar = 
ts.next() 
foo will be overwritten by bar in the second call.
this is because it is incorrectly "reused" in next()... see the testcase i 
attached for an example.


> Analysis back compat break
> --------------------------
>
>                 Key: LUCENE-1919
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1919
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>             Fix For: 2.9
>
>         Attachments: LUCENE-1919.patch, LUCENE-1919.patch, LUCENE-1919.patch
>
>
> Old and new style token streams don't mix well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to