Mon, 16 Sep 2013 14:13:44 +0200
8021112: Spurious unchecked warning reported by javac
6480588: No way to suppress deprecation warnings when implementing deprecated interface
Summary: Fixing DeferredLintHandler configuration, so lint warnings are reported with correct @SuppressWarnings settings
Reviewed-by: jjg, vromero
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6182950
4 * @summary methods clash algorithm should not depend on return type
5 * @author mcimadamore
6 * @compile/fail/ref=T6182950b.out -XDrawDiagnostics T6182950b.java
7 */
8 import java.util.List;
10 class T6182950b {
11 static class A {
12 int m(List<String> l) {return 0;}
13 }
14 static class B extends A {
15 double m(List<Integer> l) {return 0;}
16 }
17 }