I have superclass Foo. And a class Bar extending it.
public class Bar extends Foo
Function in Foo:
protected void saveAll(C
At runtime, the parameter types are replaced by Object
.
So saveAll(Collection>)
and saveAll(Collection
are transformed to saveAll(Collection)
. This is a name clash.
Look here for details.
You could do this :
public class Foo {
protected void saveAll(Collection many) {
// do stuff
}
}
public class Bar extends Foo {
}