Constructor sets the source incorrectly in org.springframework.beans.PropertyValue [SPR-8337] #12985
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Sandu Turcan opened SPR-8337 and commented
I'm using my own document loader to preserve the line numbers but source information is not available in PropertyValue instances.
I tracked down the problem to PropertyValue code.
PropertyValue defines a field named 'source' and uses it instead of the one inherited from BeanMetadataAttributeAccessor.
As a result when the beandefinition is merged and PropertyValues are cloned the source is lost.
Line 84 in PropertyValue.java:
should be
or the same as line 104, which is:
I'm not sure which one is right, I'd prefer the first one.
Issue Links:
Backported to: 4.2.8, 3.2.18
The text was updated successfully, but these errors were encountered: