diff -r 6dc10c88c07a -r 91c05eb19277 langtools/test/tools/javac/defaultMethods/Neg06.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/defaultMethods/Neg06.java Sun Nov 04 10:59:42 2012 +0000 @@ -0,0 +1,16 @@ +/* + * @test /nodynamiccopyright/ + * @summary flow analysis is not run on inlined default bodies + * @compile/fail/ref=Neg06.out -XDallowDefaultMethods -XDrawDiagnostics Neg06.java + */ + +class Neg06 { + + interface A { + default String m() { C.m(); } + } + + static class C { + static String m() { return ""; } + } +}