Community
Participate
Working Groups
3.1 here's a case where eclipse generates 5 errors for 1 mistake and all are not very helpful. When it happened to me I ran javac to understand what's going on. They show 1 message and it tells you exactly what's wrong. public class A<T0> extends ArrayList<T0> implements I<T0>{ } interface I<T1> extends Collection{ } Eclipse error message (1 of 5): Name clash: The method addAll(Collection<? extends E>) of type ArrayList<T0> has the same erasure as addAll(Collection<? extends E>) of type Collection but does not override it javac error message (1 of 1): java.util.Collection cannot be inherited with different arguments: <> and <T0> public class A<T0> extends ArrayList<T0> implements I<T0>{ ^
Works fine in latest, added GenericTypeTest#test0968