Steve Rowe created LUCENE-4842:
----------------------------------
Summary: 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
{{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]