Eclipse complains if I have a subclass that extends a generic super class. So say I have an extension of ArrayList but don't specify the type parameter of ArrayList like so:
public class MyArrayList<T> extends ArrayList {
...
}
I see a warning:
ArrayList is a raw type. References to generic type ArrayList should be parameterized
It makes sense that ArrayList would be parameterized with <T>
, but what exactly can go wrong here?