hi,

Thanks, I  guess I'll have to fix my code then.

But still, what are the reasons for such a behavior ?
Even if the javadoc says so, I still think it's a bad practise.
Anyone know why it expects a null here ?

Jukka Zitting a écrit :
Hi,

On Mon, Oct 26, 2009 at 2:55 PM, sorel <[email protected]> wrote:
Or is it said in JCR that the result must be null rather than an empty array?

Yes:

    In implementations that support node type registration, if this
    NodeTypeDefinition object is actually a newly-created empty
    NodeTypeTemplate, then this method will return null.

http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/nodetype/NodeTypeDefinition.html

BR,

Jukka Zitting



Reply via email to