Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 11686 invoked from network); 5 Feb 2009 05:00:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2009 05:00:21 -0000 Received: (qmail 16736 invoked by uid 500); 5 Feb 2009 05:00:20 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 16706 invoked by uid 500); 5 Feb 2009 05:00:20 -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 16697 invoked by uid 99); 5 Feb 2009 05:00:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2009 21:00:20 -0800 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 Feb 2009 05:00:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8E5A2234C48D for ; Wed, 4 Feb 2009 20:59:59 -0800 (PST) Message-ID: <914923149.1233809999581.JavaMail.jira@brutus> Date: Wed, 4 Feb 2009 20:59:59 -0800 (PST) From: "Dave Brosius (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1967) Impossible comparison in NodeTypeImpl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Impossible comparison in NodeTypeImpl ------------------------------------- Key: JCR-1967 URL: https://issues.apache.org/jira/browse/JCR-1967 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jcr2spi Affects Versions: 1.6.0 Reporter: Dave Brosius Priority: Minor Fix For: 1.6.0 org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeImpl does public boolean isNodeType(Name nodeTypeName) { return getName().equals(nodeTypeName) || ent.includesNodeType(nodeTypeName); } as getName() is a string and nodeTypeName is a Name this will always be false. Perhaps you meant public boolean isNodeType(Name nodeTypeName) { return getName().equals(nodeTypeName.getLocalName()) || ent.includesNodeType(nodeTypeName); } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.