You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/09/29 14:54:04 UTC

[jira] [Created] (LUCENE-6821) TermQuery's constructors should clone the incoming term

Adrien Grand created LUCENE-6821:
------------------------------------

             Summary: 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
            Priority: Minor


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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org