metadata clients cannot identify the source of a value type [SPR-5562] #10233
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Costin Leau opened SPR-5562 and commented
Another metadata request. Consider the following example:
<list value-type="java.lang.Double">
<value>0.0</value>
<value>1.0</value>
</list>
The parser stores the list value-type into each of the specified values if not type is specified. This is equivalent to:
<list>
<value type="java.lang.Double">0.0</value>
<value type="java.lang.Double">1.0</value>
</list>
The problem is that it clients relying on the metadata cannot determine wether the type has been specified on the value or on the list.
A quick solution would be to add another field to TypedStringValue (such as specifiedValue) and store there any value specified. The container would work as it is, relying on the value type (which is the specified one or, if none is specified, the default one).
Thanks,
Affects: 2.5.6
Issue Links:
Referenced from: commits 1b5812d
The text was updated successfully, but these errors were encountered: