I have some problems with a method with a typed List parameter inherited from another (typed) class.
Let it be simple:
public class B<T> { public void test(List<Integer> i) { } }
Class B has a useless generic T, and test () is an integer list.
Now if I do:
public class A extends B {
I get a "Type A Method Test (List) method must override or implement a supertype method" error, this should not be.
But deleting the list type works ... although it does not depend on the general class.
public class A extends B {
And also the definition of useless common below to use a typed list
public class A extends B<String> {
So, I do not know, general B should not affect the list type test (). Does anyone have an idea of ββwhat is going on?
thanks
source share