Skip to content

AbstractBeanDefinition#equals handles propertyValues incorrectly #26433

@AnthonyYeracaris

Description

@AnthonyYeracaris

See line 1198: ObjectUtils.nullSafeEquals(this.propertyValues, that.propertyValues)
Look at AbstractBeanDefinition#getPropertyValues, line 891, which treats, in effect a propertyValues of null as equivalent to en empty MutablePropertyValues object (i.e., a side-effect of getPropertyValues is to create an empty MutablePropertyValues object when propertyValues is null).
Affects version 5.3.3

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions