fix for changing parameter types for method which used to extend the generic-parameter-method which was refactored to bounded wildcards and "both method signatures have same erasure" error appeared as a result

This commit is contained in:
Alexey Kudravtsev
2018-09-14 16:01:02 +03:00
parent abb176a63a
commit 544c3b670f
7 changed files with 172 additions and 1 deletions
@@ -0,0 +1,17 @@
// "Fix method 'foo' parameters with bounded wildcards" "true"
import java.util.List;
interface Xo {
void foo(List<? super String> s);
}
public class ErrWarn implements Xo {
public void <caret>foo(List<? super String> s) {
}
}
class D extends ErrWarn {
@Override
public void foo(List<? super String> s) {
super.foo(s);
}
}