lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3106) commongrams filter calls incrementToken() after it returns false
Date Tue, 17 May 2011 01:52:47 GMT


Robert Muir updated LUCENE-3106:

    Attachment: LUCENE-3106_test.patch

patch with the test modifications to produce the failure.

> commongrams filter calls incrementToken() after it returns false
> ----------------------------------------------------------------
>                 Key: LUCENE-3106
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 3.2, 4.0
>         Attachments: 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
> 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message