|
Relates :
|
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);
}
|