[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Haderka reopened MAGNOLIA-3737:
-----------------------------------
While fixing {{setValue()}} could you fix also {{createValue()}} (there are 2
of them). I would even suggest to re-factor the code as those methods are doing
essentially same thing, but since it will get deprecated soon, probably makes
no sense for minor release.
And while at it, there is same issue for {{double}} vs. {{float}} which should
be fixed as well in all 3 methods.
> ClassCastException when calling DefaultContent.setNodeData with an integer
> --------------------------------------------------------------------------
>
> Key: MAGNOLIA-3737
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3737
> Project: Magnolia
> Issue Type: Bug
> Security Level: Public
> Components: core
> Reporter: Grégory Joseph
> Assignee: Daniel Lipp
> Priority: Major
> Fix For: 4.4.5
>
>
> Because this method calls
> {{info.magnolia.cms.util.NodeDataUtil#getJCRPropertyType}} then
> {{info.magnolia.cms.util.NodeDataUtil#setValue}}. The former call returns
> {{PropertyType.LONG}} whether the argument value is a {{java.lang.Integer}}
> or {{java.lang.Long}} (or their primitive counterparts thanks to
> auto-boxing), while the latter attempts to cast the value into a Long
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------