jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-380) Define conversion of property values
Date Thu, 18 Oct 2012 14:26:03 GMT

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

Michael Dürig commented on OAK-380:

I made the current conversions explicit with revision 1399669. All conversions from the various
{{PropertyState}} implementations no go through the new {{Conversions}} class which can also
be used standalone.

The ideas is that at this level only the conversions between the various representations of
values as Java types are handled. That is, conversions between {{String}}, {{Blob}}, {{long}},
{{double}}, {{boolean}} and {{BigDecimal}}. 
Conversions of values encoded into these types (e.g. PATH) should be handled separately. Currently
this is done within {{ValueImpl}} and {{ValueFactoryImpl}}. However, since we might need such
conversions also outside of the scope of JCR values, the next step here should be to untangle
conversion of JCR values and {{ValueImpl}}/{{ValueFactoryImpl}}.
> 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

View raw message