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 7034511 7040883 7041019
4 * @summary Loophole in typesafety
5 * @compile/fail/ref=T7034511a.out -XDrawDiagnostics T7034511a.java
6 */
8 class T7034511a {
10 interface A<T> {
11 void foo(T x);
12 }
14 interface B<T> extends A<T[]> { }
16 static abstract class C implements B<Integer> {
17 <T extends B<?>> void test(T x, String[] ss) {
18 x.foo(ss);
19 }
20 }
21 }