Skip to content

Fix type inferencing for parameterized methods #1424

@eric-milles

Description

@eric-milles

Method type parameters may shadow class type parameters. Static methods cannot reference class type parameters. Comparator.naturalOrder() resolves to Comparator<Object> because the type parameter T for Comparator is being used to determine the type erasure.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions