Wed, 07 Nov 2012 17:20:12 -0800
8003134: CheckResourceKeys issues
Reviewed-by: jjh, bpatel
1 /*
2 * @test /nodynamiccopyright/
3 * @summary flow analysis is not run on inlined default bodies
4 * @compile/fail/ref=Neg06.out -XDallowDefaultMethods -XDrawDiagnostics Neg06.java
5 */
7 class Neg06 {
9 interface A {
10 default String m() { C.m(); }
11 }
13 static class C {
14 static String m() { return ""; }
15 }
16 }