test/tools/javac/defaultMethods/Neg14.java

Wed, 27 Apr 2016 01:34:52 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:34:52 +0800
changeset 0
959103a6100f
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17

     1 /* @test /nodynamiccopyright/
     2  * @bug 7192246
     3  * @summary check that a class cannot have two sibling interfaces with a default and abstract method
     4  * @compile/fail/ref=Neg14.out -XDrawDiagnostics Neg14.java
     5  */
     6 class Neg14 {
     7     interface IA { int m(); }
     8     interface IB { default int m() { return 1; } }
    10     abstract class AB implements IA, IB {}
    11 }

mercurial