1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/defaultMethods/Neg14.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,11 @@ 1.4 +/* @test /nodynamiccopyright/ 1.5 + * @bug 7192246 1.6 + * @summary check that a class cannot have two sibling interfaces with a default and abstract method 1.7 + * @compile/fail/ref=Neg14.out -XDrawDiagnostics Neg14.java 1.8 + */ 1.9 +class Neg14 { 1.10 + interface IA { int m(); } 1.11 + interface IB { default int m() { return 1; } } 1.12 + 1.13 + abstract class AB implements IA, IB {} 1.14 +}