[ https://issues.apache.org/jira/browse/LUCENE-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Rowe updated LUCENE-4842: ------------------------------- Fix Version/s: 4.3 5.0 > 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 > Fix For: 5.0, 4.3 > > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org