jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject Re: NodeTypeDefinition.getDeclaredPropertyDefinitions() contract weirdness!?
Date Fri, 14 Sep 2012 11:07:22 GMT

On 14.9.12 11:46, Jukka Zitting wrote:
> Hi,
> On Fri, Sep 14, 2012 at 10:36 AM, Michael Dürig <mduerig@apache.org> wrote:
>> Why null and not an empty array? Is there a case supporting this behaviour
>> or is this just the implementation leaking into the spec.?
> IIRC the idea was to distinguish between the cases where there are no
> definitions (empty array) and where no definition information is yet
> available (null, the template is still being constructed).

Hmm ok that's what I though. So these are expected to return null until 
getPropertyDefinitionTemplates() has been called for the first time. In 
other words: you need to call getPropertyDefinitionTemplates() to add an 
empty list of property definitions. Still weird ;-)


> BR,
> Jukka Zitting

View raw message