Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 70559 invoked from network); 8 Sep 2009 19:58:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Sep 2009 19:58:22 -0000 Received: (qmail 13420 invoked by uid 500); 8 Sep 2009 19:58:21 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 13322 invoked by uid 500); 8 Sep 2009 19:58:20 -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 13091 invoked by uid 99); 8 Sep 2009 19:58:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 19:58:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 19:58:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DC094234C04B for ; Tue, 8 Sep 2009 12:57:57 -0700 (PDT) Message-ID: <2083775066.1252439877900.JavaMail.jira@brutus> Date: Tue, 8 Sep 2009 12:57:57 -0700 (PDT) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1901) TermAttributeImpl.equals() does not check termLength In-Reply-To: <583995269.1252439877877.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752698#action_12752698 ] Uwe Schindler commented on LUCENE-1901: --------------------------------------- You are right, I will fix it. The simpliest is to check if (termlength!=o.thermLength) before the for-loop. The code is then equals to Token.java (I think this was a copy'n'paste bug). > TermAttributeImpl.equals() does not check termLength > ---------------------------------------------------- > > Key: LUCENE-1901 > URL: https://issues.apache.org/jira/browse/LUCENE-1901 > Project: Lucene - Java > Issue Type: Bug > Components: Analysis > Affects Versions: 2.9 > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Fix For: 2.9 > > > If you look at the code from equals(), I think it misses this check : > "AX".equals("A"); > since it does not check if the termLength() are different. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org