R
Roedy Green
I wonder if anyone can shed light on what this error message means:
Name clash: The method addAll(Collection<E>) of type
SortedArrayList<E> has the same erasure as addAll(Collection<? extends
E>) of type ArrayList<E> but does not override it
SortedArrayList.java
the code looks like this:
public class SortedArrayList<E> extends ArrayList<E> implements
Cloneable {
....
public boolean addAll ( Collection<E> c )
{
sorted = false;
return super.addAll( c );
}
Is there distinction between <E> and <? extends E>?
If the underlying arrayList has a method addAll( Collection ) types
aside, why would not my method override it.?
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
Name clash: The method addAll(Collection<E>) of type
SortedArrayList<E> has the same erasure as addAll(Collection<? extends
E>) of type ArrayList<E> but does not override it
SortedArrayList.java
the code looks like this:
public class SortedArrayList<E> extends ArrayList<E> implements
Cloneable {
....
public boolean addAll ( Collection<E> c )
{
sorted = false;
return super.addAll( c );
}
Is there distinction between <E> and <? extends E>?
If the underlying arrayList has a method addAll( Collection ) types
aside, why would not my method override it.?
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes