[
https://issues.apache.org/jira/browse/SLING-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096711#comment-14096711
]
Stefan Seifert commented on SLING-3846:
---------------------------------------
yes - maybe the initial support of the JCR value map implementation for
built-in conversion of Calendar to Date is questionable.
but it is there since years, and thus i think it should be supported for write
as well, not only for read.
> JcrModifiableValueMap: Date object not supported for writing data
> -----------------------------------------------------------------
>
> Key: SLING-3846
> URL: https://issues.apache.org/jira/browse/SLING-3846
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR Resource 2.3.6
> Reporter: Stefan Seifert
> Fix For: JCR Resource 2.3.8
>
> Attachments: SLING-3846_JcrModifiableValueMap_DateConversion.patch
>
>
> the JCR value map implementation supported for a long time accessing date
> values either with Calendar.class or Date.class - the calendar value was
> converted automatically if required.
> this does currently not work when writing values - for writing only Calendar
> objects are supported, no date objects.
> the attached patch ensures that this behavior is symmetric (incl. an unit
> test).
--
This message was sent by Atlassian JIRA
(v6.2#6252)