Skip to content

PropertyValue does not copy the converted semantics of a given pv [SPR-5293] #9966

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions