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

Adrien Grand updated LUCENE-4656:
---------------------------------

    Attachment: LUCENE-4656.patch

Patch. I wasn't sure whether to add a CharTermAttribute to EmptyTokenizer or to 
try fixing BaseTokenStreamTestCase but I couldn't think of a non-trivial 
tokenizer that wouldn't have a CharTermAttribute so I left the assertion that 
checks that a token stream always has a CharTermAttribute.
                
> Fix EmptyTokenizer
> ------------------
>
>                 Key: LUCENE-4656
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4656
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Trivial
>         Attachments: LUCENE-4656.patch
>
>
> TestRandomChains can fail because EmptyTokenizer doesn't have a 
> CharTermAttribute and doesn't compute the end offset (if the offset attribute 
> was added by a filter).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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