Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 29309 invoked from network); 5 Jun 2008 13:36:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 13:36:13 -0000 Received: (qmail 57891 invoked by uid 500); 5 Jun 2008 13:36:12 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 57601 invoked by uid 500); 5 Jun 2008 13:36:11 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 57567 invoked by uid 99); 5 Jun 2008 13:36:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 06:36:11 -0700 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; Thu, 05 Jun 2008 13:35:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3850E234C135 for ; Thu, 5 Jun 2008 06:35:45 -0700 (PDT) Message-ID: <238991793.1212672945229.JavaMail.jira@brutus> Date: Thu, 5 Jun 2008 06:35:45 -0700 (PDT) From: "Matthias Seidel (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-624) QueryKey hashCode is inconsistent with equals MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org QueryKey hashCode is inconsistent with equals --------------------------------------------- Key: OPENJPA-624 URL: https://issues.apache.org/jira/browse/OPENJPA-624 Project: OpenJPA Issue Type: Bug Components: datacache Affects Versions: 1.1.0 Reporter: Matthias Seidel The hashCode method of QueryKey is implemented to make use of _candidateClassName, _query and _params while the equals method also considers _rangeStart, _rangeEnd and some other stuff. This makes them inconsistent and while this seems to work in a CacheMap it makes it unusable in some other environment e.g. a custom QueryCache implementation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.