Open
Description
As described in TypeParameterUnusedInFormals, these methods provide developers a false sense of type safety, whereas in reality they can cause ClassCastException
s at runtime:
- Logger#getMessageFactory,
- ReadOnlyStringMap#getValue,
- LoaderUtil#newInstanceOf(String) and similar,
- ObjectThreadContextMap#getValue.
Changing/removing these methods is a binary compatible, but source incompatible change, hence this must be done in a major release.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To triage