[
https://issues.apache.org/jira/browse/LUCENENET-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff updated LUCENENET-76:
--------------------------
Attachment: DisjunctionMaxQuery.patch
> DisjunctionMaxQuery has unnecessary clone which causes it to fail unit tests
> ----------------------------------------------------------------------------
>
> Key: LUCENENET-76
> URL: https://issues.apache.org/jira/browse/LUCENENET-76
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Jeff
> Priority: Minor
> Attachments: DisjunctionMaxQuery.patch
>
>
> DisjunctionMaxQuery.Clone() clones the DisjunctionMaxQuery then the disjuncts
> arraylist. When cloning the disjuncts arraylist it causes the unit tests to
> fail. disjuncts are cloned with cloning the query, so this is not needed.
> public override System.Object Clone()
> {
> DisjunctionMaxQuery clone = (DisjunctionMaxQuery) base.Clone();
> //clone.disjuncts = (System.Collections.ArrayList)
> this.disjuncts.Clone();
> return clone;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.