You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Shad Storhaug (Jira)" <ji...@apache.org> on 2021/12/09 18:18:00 UTC

[jira] [Closed] (LUCENENET-611) TokenStream.IncrementToken() is called after Dispose() is called

     [ https://issues.apache.org/jira/browse/LUCENENET-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shad Storhaug closed LUCENENET-611.
-----------------------------------
    Resolution: Abandoned

Moved to GitHub: https://github.com/apache/lucenenet/issues/271

> TokenStream.IncrementToken() is called after Dispose() is called
> ----------------------------------------------------------------
>
>                 Key: LUCENENET-611
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-611
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Core
>    Affects Versions: Lucene.Net 4.8.0
>            Reporter: Shad Storhaug
>            Priority: Minor
>
> When overriding {{Dispose(bool)}} in either {{TokenStream}} subclasses, Lucene.Net will call {{Dispose()}} before it is done using the {{TokenStream}}, and call {{IncrementToken()}} again.
>  
> The behavior can be observed in the {{Lucene.Net.Collation.TestICUCollationKeyFilter.TestCollationKeySort()}} when the {{ICUCollationKeyFilter}} implements {{Dispose()}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)