Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 85342 invoked from network); 1 Mar 2006 16:42:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 16:42:41 -0000 Received: (qmail 82525 invoked by uid 500); 1 Mar 2006 16:43:11 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 82461 invoked by uid 99); 1 Mar 2006 16:43:11 -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; Wed, 01 Mar 2006 08:43:09 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0AC26DE for ; Wed, 1 Mar 2006 17:42:43 +0100 (CET) Message-ID: <324413240.1141231363739.JavaMail.jira@ajax.apache.org> Date: Wed, 1 Mar 2006 17:42:43 +0100 (CET) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Closed: (JCR-329) NodeReferencesId.equals() is not symetric In-Reply-To: <737095478.1141137759685.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/JCR-329?page=all ] Stefan Guggisberg closed JCR-329: --------------------------------- Resolution: Fixed incorporated all suggested changes (svn r382075) > NodeReferencesId.equals() is not symetric > ----------------------------------------- > > Key: JCR-329 > URL: http://issues.apache.org/jira/browse/JCR-329 > Project: Jackrabbit > Type: Improvement > Versions: 0.9 > Reporter: Marcel Reutegger > Assignee: Stefan Guggisberg > Priority: Minor > Fix For: 1.0 > Attachments: NodeReferencesId.patch > > NodeReferencesId.equals() is not symetric when equality is tested against a NodeId. > Code example: > UUID uuid = UUID.randomUUID(); > NodeId id = new NodeId(uuid); > NodeReferencesId refId = new NodeReferencesId(uuid); > id.equals(refId); // will return true > refId.equals(id); // will return false > NodeReferencesId should be decouled from the ItemId hierarchy. The class NodeReferences already does not extend from NodeState which makes perfectly sense. So, the same should apply to the identifier of NodeReferences. > The attached patch to NodeReferencesId also requires minor changes to some of the persistence managers. -- 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