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

Michael McCandless updated LUCENE-3896:
---------------------------------------

    Attachment: LUCENE-3896.patch

OK I think the problem here was the spoon-feeder would feed 1 character, and 
that 1 character is a high-surrogate.  In that case, CharacterUtils.fill was 
returning 0, but I think should re-attempt the read to pull more chars?

Attached patch seems to fix it... not sure we can do it cleaner though.
                
> CharTokenizer has bugs for large documents.
> -------------------------------------------
>
>                 Key: LUCENE-3896
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3896
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: Robert Muir
>            Priority: Blocker
>         Attachments: LUCENE-3896.patch, LUCENE-3896.patch
>
>
> Initially found by hudson from additional testing added in LUCENE-3894, but 
> currently not reproducable (see LUCENE-3895).
> But its easy to reproduce for a simple single-threaded case in 
> TestDuelingAnalyzers.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to