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
Components: core
Reporter: Grégory Joseph
Assignee: Philipp Bärfuss
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/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------