PropertyValue does not copy the converted semantics of a given pv [SPR-5293] #9966
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Costin Leau opened SPR-5293 and commented
Constructor PropertyValue(PropertyValue) does not copy all the properties of the given pv. In my case, the given pv is converted already which means the converted flag is set to true. However, the constructor does not copies this field (though it does copy conversionNecessary which is package protected) which means the property gets converted again on the next run. Additionally, the converted value is ignored as well.
Not sure what's the relationship between resolvedTokens and convertedValue but the two should be synchronized somehow.
(I've attached a patch with a trivial fix)
Affects: 2.5.6
Attachments:
Referenced from: commits 46cbaa9
The text was updated successfully, but these errors were encountered: