Skip to content

Issue with equals(…)/hashCode() for ResolvableType.forRawClass(…) #28608

Closed
@odrotbohm

Description

@odrotbohm

ResolvableType.forRawClass(…) returns an anonymous subclass of ResolvableType that alters its behavior but does not override equals(…)/hashCode() so that instances created through that method are considered the same as ones created via forClass(…) despite different behavior when trying to resolve generics. This fundamentally breaks the ability to use ResolvableType instances that are potentially created in both ways as map or cache keys.

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