-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AbstractBeanDefinition#equals handles propertyValues incorrectly #26433
Comments
This turns out to be a regression from 4.3.x where there always were empty |
BTW, and forgive me if it's too obvious, but don't forget the hashCode() implementation. |
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
The text was updated successfully, but these errors were encountered: