Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 22220 invoked from network); 2 Aug 2007 10:11:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2007 10:11:28 -0000 Received: (qmail 24877 invoked by uid 500); 2 Aug 2007 10:11:27 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 24558 invoked by uid 500); 2 Aug 2007 10:11:26 -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 24549 invoked by uid 99); 2 Aug 2007 10:11:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 03:11:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.128.185 as permitted sender) Received: from [209.85.128.185] (HELO fk-out-0910.google.com) (209.85.128.185) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 10:11:23 +0000 Received: by fk-out-0910.google.com with SMTP id b27so445127fka for ; Thu, 02 Aug 2007 03:11:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R/zKkwZKM8p0tm6m+QWIYTPX4HMq9XNg/qqAOmxztpAWEdD8BBzq2OeVGD4ntsVAwnhBjldQk/nfMmlmoDGedo8dFo5atJSN/I9Ey389eDoPifob1Nf+5NiBbFTVuYzd9FYcColEDgFoEh6wl/Oms/z0I2/nFs4XykD31oJpBJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OrhoQjyyPVfOnvuLua7c05ahJLrM79jhe2qq5gmZZD3Y598KR/1FlD2Ucr8JJ5LwA8iu5YKDyjXE4zLcQ5kpkhBgM8wogxpcK0ZNI5z15J4PW9HpdxMqV3YGCaqQ/lAyz/VLigXFVouhkPjf6jw0dh5fp+qJlNR7YIJaIgcop9E= Received: by 10.82.136.4 with SMTP id j4mr2047377bud.1186049461953; Thu, 02 Aug 2007 03:11:01 -0700 (PDT) Received: by 10.82.158.11 with HTTP; Thu, 2 Aug 2007 03:11:01 -0700 (PDT) Message-ID: <90a8d1c00708020311o208865bay51220e59898f091@mail.gmail.com> Date: Thu, 2 Aug 2007 12:11:01 +0200 From: "Stefan Guggisberg" To: dev@jackrabbit.apache.org Subject: Re: Inheritance of "orderable" attribute for node types In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org hi christoph On 7/31/07, Christoph Kiehl wrote: > Hi, > > we just discovered, that the "orderable" attribute of node types is not > inherited from supertypes. NodeTypeImpl.hasOrderableChildNodes() just calls > NodeTypeDef.hasOrderableChildNodes() instead of using the EffectiveNodeType to > determine if a node type allows orderable child nodes. > The specification does not define how this should be handled (6.7.8 Inheritance > Among Node Types), but was there any reason not to use EffectiveNodeType? the jsr 170 spec and the current public-review-draft of the jsr 283 spec (4.7.7) leave it up to the implementation whether e.g. the orderable child nodes setting is inherited from supertypes. inheritance semantics, especially with multiple inhertitance, are non-trivial at best and up to a certain degree arbitrary. e.g. assume the following: [A] - foo (string) primary mandatory [B] - bar (string) primary mandatory [C] > A, B now given a node of type C, which property (foo/bar) is the primary item? jackrabbit therefore, in compliance with the spec, doesn't support inheritance of node type attributes. cheers stefan > > Cheers, > Christoph > >