Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 84580 invoked from network); 11 Jun 2009 15:09:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 15:09:20 -0000 Received: (qmail 66624 invoked by uid 500); 11 Jun 2009 15:09:31 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 66550 invoked by uid 500); 11 Jun 2009 15:09:31 -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 66542 invoked by uid 99); 11 Jun 2009 15:09:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 15:09:31 +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; Thu, 11 Jun 2009 15:09:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A721F234C004 for ; Thu, 11 Jun 2009 08:09:07 -0700 (PDT) Message-ID: <1271787410.1244732947673.JavaMail.jira@brutus> Date: Thu, 11 Jun 2009 08:09:07 -0700 (PDT) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-2143) Registering a Nodetype based on an existing NodeType fail In-Reply-To: <1483390582.1244729827351.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Guggisberg resolved JCR-2143. ------------------------------------ Resolution: Fixed fixed in svn r783809 > Registering a Nodetype based on an existing NodeType fail > --------------------------------------------------------- > > Key: JCR-2143 > URL: https://issues.apache.org/jira/browse/JCR-2143 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 1.5.6, 2.0-alpha1 > Reporter: Luca Tagliani > > If I create a new NodeTypeTemplate using the code show below, > NodeTypeManagerImpl ntm = (NodeTypeManagerImpl) session.getWorkspace().getNodeTypeManager(); > NodeTypeDefinition nt = (NodeTypeDefinition) ntm.getNodeType("wr:entity"); > NodeTypeTemplate ntt = ntm.createNodeTypeTemplate(nt); > the list of declaredSuperType contains the same name of the original nodeType (repeted twice) and not the declaredSuperType of the original nodeType (in this example [nt:base, nt:file]) > ntt.getDeclaredSupertypeNames(); -> [wr:entity, wr:entity] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.