jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-194) Define behavior of Tree#getProperty(String) in case of lack of access
Date Thu, 19 Jul 2012 10:03:33 GMT

    [ https://issues.apache.org/jira/browse/OAK-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418193#comment-13418193
] 

Jukka Zitting commented on OAK-194:
-----------------------------------

I think in that case the method should return {{null}}, as otherwise we give out information
about the presence of that property.
                
> Define behavior of Tree#getProperty(String) in case of lack of access
> ---------------------------------------------------------------------
>
>                 Key: OAK-194
>                 URL: https://issues.apache.org/jira/browse/OAK-194
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: core
>            Reporter: angela
>
> The javadoc for Tree#getProperty states:
> "the property state with the given {@code name} or {@code null}
>  if no such property state exists."
> IMO the javadoc should also deal with the case that property with the
> given name is not accessible.
> was the return value 'null' again? or would the method throw an exception?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message