[
https://issues.apache.org/jira/browse/LUCENE-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604522#comment-13604522
]
Commit Tag Bot commented on LUCENE-4842:
----------------------------------------
[branch_4x commit] Steven Rowe
http://svn.apache.org/viewvc?view=revision&revision=1457381
LUCENE-4842: Unbreak SynonymMap.Builder.join(String[],CharsRef) (merged trunk
r1457380)
> SynonymMap.Builder.join(String[], CharsRef) is untested and broken
> ------------------------------------------------------------------
>
> Key: LUCENE-4842
> URL: https://issues.apache.org/jira/browse/LUCENE-4842
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Reporter: Steve Rowe
> Assignee: Steve Rowe
> Priority: Minor
> Attachments: LUCENE-4842.patch
>
>
> {{SynonymMap.Builder.join()}} throws {{ArrayIndexOutOfBounds}} when you give
> it more than one {{String}}: the amount it grows to add the word separator is
> off by one; it fails to set the length of the {{CharsRef}} it populates; and
> it needlessly calls {{CharsRef.grow()}} twice per word, first for the word
> separator and again for the word to be appended.
--
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]