-
Enhancement
-
Resolution: Won't Fix
-
P5
-
None
-
5.0
-
None
-
generic
-
generic
The program below generates one warning, although the two fields has
equivalent types.
class Handle<E extends Number> {
}
abstract class GenericAssignment {
Handle<? extends Number> whyWarning = lookup(Handle.class);
Handle<?> noWarning = lookup(Handle.class);
abstract <T> T lookup(Class<T> clazz);
}
equivalent types.
class Handle<E extends Number> {
}
abstract class GenericAssignment {
Handle<? extends Number> whyWarning = lookup(Handle.class);
Handle<?> noWarning = lookup(Handle.class);
abstract <T> T lookup(Class<T> clazz);
}
- relates to
-
JDK-8061418 Add reification of generic type parameters to the Java programming language
-
- Closed
-