You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2014/10/22 11:48:33 UTC

[jira] [Commented] (SLING-4088) Regression introduced by SLING-3846 : JcrModifiableValueMap: Date object not supported for writing data

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

Stefan Seifert commented on SLING-4088:
---------------------------------------

do you mean getting the Date object back without specifying an explicit type in the value map get method?
SLING-3846 contains a set of unit tests which should cover all cases - but obviously we are missing the case you are mentioning here.
the usecases tested there always specify an explicit type.

> Regression introduced by SLING-3846 : JcrModifiableValueMap: Date object not supported for writing data
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-4088
>                 URL: https://issues.apache.org/jira/browse/SLING-4088
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.3.8, JCR Resource 2.3.10
>
>
> With the patch of SLING-3846, putting a Date object into a resource, reading the resource back and trying to get a Date object, results in a ClassCastException as now a Calendar object is returned.,
> This breaks existing code and I think we should revert SLING-3846



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)