jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sorel <johann.so...@geomatys.fr>
Subject Re: Tests bad practises ? or specified in JCR ?
Date Mon, 26 Oct 2009 14:09:32 GMT
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 <johann.sorel@geomatys.fr> 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
>
>
>   


Mime
View raw message