Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 83199 invoked from network); 20 Apr 2009 16:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Apr 2009 16:39:12 -0000 Received: (qmail 27538 invoked by uid 500); 20 Apr 2009 16:39:11 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 27448 invoked by uid 500); 20 Apr 2009 16:39:11 -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 27192 invoked by uid 99); 20 Apr 2009 16:39:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2009 16:39:10 +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; Mon, 20 Apr 2009 16:39:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9E68F234C046 for ; Mon, 20 Apr 2009 09:38:47 -0700 (PDT) Message-ID: <1327762975.1240245527647.JavaMail.jira@brutus> Date: Mon, 20 Apr 2009 09:38:47 -0700 (PDT) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1967) Impossible comparison in NodeTypeImpl In-Reply-To: <914923149.1233809999581.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1967?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Michael D=C3=BCrig updated JCR-1967: ------------------------------- Affects Version/s: 1.5.0 > Impossible comparison in NodeTypeImpl > ------------------------------------- > > Key: JCR-1967 > URL: https://issues.apache.org/jira/browse/JCR-1967 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-jcr2spi > Affects Versions: 1.5.0, 1.6.0 > Reporter: Dave Brosius > Assignee: Michael D=C3=BCrig > Priority: Trivial > Fix For: 1.6.0 > > > org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeImpl does > public boolean isNodeType(Name nodeTypeName) { > return getName().equals(nodeTypeName) || ent.includesNodeType(no= deTypeName); > } > as getName() is a string and nodeTypeName is a Name this will always be f= alse. Perhaps you meant > public boolean isNodeType(Name nodeTypeName) { > return getName().equals(nodeTypeName.getLocalName()) || ent.incl= udesNodeType(nodeTypeName); > } --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.