Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2CEBA6532 for ; Thu, 4 Aug 2011 05:13:59 +0000 (UTC) Received: (qmail 96424 invoked by uid 500); 4 Aug 2011 05:13:58 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 96067 invoked by uid 500); 4 Aug 2011 05:13:52 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 96059 invoked by uid 99); 4 Aug 2011 05:13:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 05:13:49 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 05:13:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0C293A7B4A for ; Thu, 4 Aug 2011 05:13:27 +0000 (UTC) Date: Thu, 4 Aug 2011 05:13:27 +0000 (UTC) From: "brian wallis (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <918780101.7133.1312434807046.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (JCR-3039) JCAResourceAdapter should implement equals and hashCode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 JCAResourceAdapter should implement equals and hashCode ------------------------------------------------------- Key: JCR-3039 URL: https://issues.apache.org/jira/browse/JCR-3039 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jca Affects Versions: 2.2.7 Reporter: brian wallis According to the spec, the JCAResourceAdapter class should override the equals and hashCode methods inherited from java.lang.Object. I suspect in the case of JackRabbit that this is a very simple implementation since the object has no real state and is a front for a singleton. But the spec requires it and the IronJacamar validation tool indicates an error when run against the rar file. >From Section 16.4 of the J2EE Connector Architecture Specification Version 1.5: Equality based on config properties and class information The candidate objects are implementations of ResourceAdapter, ManagedConnectionFactory, ConnectionRequestInfo, java.security.Principal, org.ietf.jgss.GSSCredential, GenericCredential, PasswordCredential, and Record types. These objects must override the default equals and hashCode methods, and provide an equality behavior based on the configuration properties and class information. That is, any two objects can be equal only if their configuration properties match and they have the same class implementation. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira