[ https://issues.apache.org/jira/browse/LUCENE-6821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14966553#comment-14966553 ]
ASF subversion and git services commented on LUCENE-6821: --------------------------------------------------------- Commit 1709780 from [~teofili] in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1709780 ] LUCENE-6821 - TermQuery's constructors should clone the incoming term (backport branch 5.x) > TermQuery's constructors should clone the incoming term > ------------------------------------------------------- > > Key: LUCENE-6821 > URL: https://issues.apache.org/jira/browse/LUCENE-6821 > Project: Lucene - Core > Issue Type: Task > Reporter: Adrien Grand > Assignee: Tommaso Teofili > Priority: Minor > Fix For: 6.0, 5.4 > > Attachments: LUCENE-6821.2.patch, LUCENE-6821.patch, LUCENE-6821.patch > > > This is a follow-up of LUCENE-6435: the bug stems from the fact that you can > build term queries out of shared BytesRef objects (such as the ones returned > by TermsEnum.next), which is a bit trappy. If TermQuery's constructors would > clone the incoming term, we wouldn't have this trap. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org