Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 32423 invoked from network); 11 Oct 2005 21:16:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 21:16:32 -0000 Received: (qmail 64607 invoked by uid 500); 11 Oct 2005 21:16:27 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 64570 invoked by uid 500); 11 Oct 2005 21:16:27 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 64559 invoked by uid 99); 11 Oct 2005 21:16:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 14:16:27 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0704C512 for ; Tue, 11 Oct 2005 23:16:06 +0200 (CEST) Message-ID: <922544599.1129065365982.JavaMail.jira@ajax.apache.org> Date: Tue, 11 Oct 2005 23:16:05 +0200 (CEST) From: "Guillaume Blain (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-452) PrefixQuery is missing the equals() method In-Reply-To: <1205257074.1129065125141.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-452?page=all ] Guillaume Blain updated LUCENE-452: ----------------------------------- Attachment: PrefixQuery.java Here's waht the PrefixQuery.java should be like modified the revsision 201453 valid as of 20051011, also added hashcode() which I forgot to mention in the previous message > PrefixQuery is missing the equals() method > ------------------------------------------ > > Key: LUCENE-452 > URL: http://issues.apache.org/jira/browse/LUCENE-452 > Project: Lucene - Java > Type: Improvement > Versions: 1.9 > Reporter: Guillaume Blain > Priority: Minor > Attachments: PrefixQuery.java > > The PrefixQuery is inheriting the java.lang.Object's object default equals method. This makes it hard to have test working of PrefixFilter or any other task requiring equals to work proerply (insertion in Set, etc.). The equal method should be very similar, not to say identical except for class casting, to the equals() of TermQuery. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org