You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2012/10/17 14:22:03 UTC

[jira] [Commented] (OAK-380) Define conversion of property values

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

Michael Dürig commented on OAK-380:
-----------------------------------

The conversions currently in place are the same we had earlier on {{CoreValue}} (i.e. before OAK-350). I'm not sure what the original motivation was for the kind of conversions which are built in but I think we should either

# Provide no conversion at all at that level but have a dedicated utility for handling conversions or, 
# provide all conversion mandated by JCR. 

In the latter case I'd still delegate that conversion functionality to a utility method which then could also be used otherwise. 
                
> Define conversion of property values
> ------------------------------------
>
>                 Key: OAK-380
>                 URL: https://issues.apache.org/jira/browse/OAK-380
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: angela
>
> i just run into the situation of converting a propertystate's value
> of type Date to a Long, which currently throws numberformatexception.
> while i can work around this, i think we should come up with a clear
> definition on value conversion provided by oak-api. the only thing i
> found so far was the description in PropertyState#getValue that claims
> that a conversion in done but not which conversions are supported.
> unless otherwise specified i had silently expected that simple jcr-conversions
> would work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira