From java-dev-return-40369-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Tue Oct 06 16:27:56 2009 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 65710 invoked from network); 6 Oct 2009 16:27:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Oct 2009 16:27:56 -0000 Received: (qmail 28084 invoked by uid 500); 6 Oct 2009 16:27:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 28018 invoked by uid 500); 6 Oct 2009 16:27:55 -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 28010 invoked by uid 99); 6 Oct 2009 16:27:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 16:27:55 +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, 06 Oct 2009 16:27:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 59422234C04B for ; Tue, 6 Oct 2009 09:27:31 -0700 (PDT) Message-ID: <424142808.1254846451364.JavaMail.jira@brutus> Date: Tue, 6 Oct 2009 09:27:31 -0700 (PDT) From: "Aaron McKee (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-1949) FilterManager uses unsafe keys for its filter cache 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 FilterManager uses unsafe keys for its filter cache --------------------------------------------------- Key: LUCENE-1949 URL: https://issues.apache.org/jira/browse/LUCENE-1949 Project: Lucene - Java Issue Type: Bug Components: Search Affects Versions: 2.9 Reporter: Aaron McKee Priority: Minor re: FilterManager.getFilter(Filter filter) FilterManager is using the filter's hash code as the key to its filter cache, however hash codes are intrinsically not guaranteed to be distinct; different filters may hash to the same value. Although the chance of a conflict is hopefully low, given reasonable implementations of hashCode, it's certainly not impossible. When a conflict does occur, an unintended filter may be returned. I'm unaware to what extent this class is actively being used, but noticed the issue during a code browse and thought I'd at least mention it. -- 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