[
https://issues.apache.org/jira/browse/LUCENE-4656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542902#comment-13542902
]
Robert Muir commented on LUCENE-4656:
-------------------------------------
{quote}
It feels strange to me that a non-trivial TokenStream could have no
CharTermAttribute?
{quote}
I dont think analysis components should add attributes they dont really need:
it should only
be the minimal ones they need to work. so I think that extends to this empty
one?
> 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]