[MAGNOLIA-5192] PropertyUtil should not cast a Multi property value to String but keep the original type. Created: 18/Jul/13  Updated: 24/Jul/13  Resolved: 19/Jul/13

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 5.0.1
Fix Version/s: 5.1

Type: Bug Priority: Neutral
Reporter: Eric Hechinger Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Currently in case of a Collection value , PropertyUtil.setProperty() will create a MultiValue property of type String for the Collection value.
The Collection value type object is ignore and individual value are caste to String.

This is wrong.
We have to create a multi property value of type Double if the value is a collection of double.


Generated at Mon Feb 12 04:02:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.