Skip to content

TypedValue should have proper equals(…) / hashCode() methods [SPR-11960] #16576

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-11960 and commented

When implementing unit tests against custom PropertyAccessor and MathodResolver instances it would be helpful if TypedValue would adhere to value object semantics and be equal if the set value and type is equal.

assertThat(new TypedValue("value"), is(new TypedValued("value")));

Affects: 3.2.9, 4.0.5

Referenced from: commits 6dbb465, a8848cb

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