Skip to content

Check UniversalType's equals and hashCode methods #31

@ljnelson

Description

@ljnelson

The hashCode method simply returns the delegate's hashcode. I can't see how this could be wrong.

The equals method currently uses isSameType semantics, which I'm thinking may be incorrect. The problem seems to surface in certain type erasure scenarios where two delegates, from the same implementation, representing to the naked eye java.lang.Object, do not compare as the same type (!) so the equals call fails.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginvestigationAn investigation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions