You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/09/17 14:43:44 UTC

[jira] Commented: (SLING-662) ValueMap#get(java.lang.String name, T defaultValue) should support arrays transparently

    [ https://issues.apache.org/jira/browse/SLING-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631758#action_12631758 ] 

Felix Meschberger commented on SLING-662:
-----------------------------------------

Sounds reasonable, indeed.

> ValueMap#get(java.lang.String name, T defaultValue) should support arrays transparently
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-662
>                 URL: https://issues.apache.org/jira/browse/SLING-662
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR Resource
>            Reporter: Tobias Bocanegra
>            Assignee: Felix Meschberger
>
> when calling ValueMap.get("name", String[].class) and empty array is returned if the underlying jcr property is not
> multivalued. this is very inconvenient.
> imo get() for arrays or single values should work transparently regardless of the underlying property multivalueness.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.