From dev-return-7719-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Jul 03 12:44:31 2006 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 98297 invoked from network); 3 Jul 2006 12:44:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2006 12:44:31 -0000 Received: (qmail 37806 invoked by uid 500); 3 Jul 2006 12:44:18 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 37745 invoked by uid 500); 3 Jul 2006 12:44:18 -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 37650 invoked by uid 99); 3 Jul 2006 12:44:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 05:44:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 05:44:14 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AF453410397 for ; Mon, 3 Jul 2006 12:42:30 +0000 (GMT) Message-ID: <582956.1151930550714.JavaMail.jira@brutus> Date: Mon, 3 Jul 2006 12:42:30 +0000 (GMT+00:00) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-433) NodeTypeRegistry could auto-subtype from nt:base In-Reply-To: <3106175.1147519268462.JavaMail.root@brutus> 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-433?page=comments#action_12418958 ] Stefan Guggisberg commented on JCR-433: --------------------------------------- +1 for the proposed patch, thanks. > NodeTypeRegistry could auto-subtype from nt:base > ------------------------------------------------ > > Key: JCR-433 > URL: http://issues.apache.org/jira/browse/JCR-433 > Project: Jackrabbit > Type: Improvement > Components: nodetype > Versions: 1.0, 1.0.1, 0.9 > Reporter: Tobias Bocanegra > Assignee: Jukka Zitting > Priority: Minor > Fix For: 1.1 > Attachments: jackrabbit-ntd-r41844.patch > > when tying to register a (primary) nodetype that does not extend from nt:base the following error is > thrown: > "all primary node types except nt:base itself must be (directly or indirectly) derived from nt:base" > since the registry is able to detect this error, it would be easy to auto-subtype all nodetypes from nt:base. imo it's pointless to explzitely add the nt:base to every supperclass set. as an analogy, you don't need to 'extend from java.lang.Object' explicitely - the compiler does that automatically for your. -- 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