You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2011/06/09 18:23:58 UTC
[jira] [Resolved] (LUCENE-3106) commongrams filter calls
incrementToken() after it returns false
[ https://issues.apache.org/jira/browse/LUCENE-3106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-3106.
---------------------------------
Resolution: Fixed
Fix Version/s: (was: 3.3)
3.2
4.0
this was fixed in LUCENE-3113
> commongrams filter calls incrementToken() after it returns false
> ----------------------------------------------------------------
>
> Key: LUCENE-3106
> URL: https://issues.apache.org/jira/browse/LUCENE-3106
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/analysis
> Reporter: Robert Muir
> Fix For: 4.0, 3.2
>
> Attachments: LUCENE-3106.patch, LUCENE-3106_test.patch
>
>
> In LUCENE-3064, we beefed up MockTokenizer with assertions, and I started cutting over some analysis tests to use MockTokenizer for better coverage.
> The commongrams tests fail, because they call incrementToken() after it already returns false.
> In general its my understanding consumers should not do this (and i know of a few tokenizers that will actually throw exceptions if you do this, just like java iterators and such).
--
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