2013-09-10 11:47:51 +00:00
|
|
|
/* @test /nodynamiccopyright/
|
|
|
|
* @bug 7192246
|
2012-11-04 10:59:42 +00:00
|
|
|
* @summary check that a class cannot have two sibling interfaces with a default and abstract method
|
2012-11-17 19:01:03 +00:00
|
|
|
* @compile/fail/ref=Neg14.out -XDrawDiagnostics Neg14.java
|
2012-11-04 10:59:42 +00:00
|
|
|
*/
|
|
|
|
class Neg14 {
|
|
|
|
interface IA { int m(); }
|
|
|
|
interface IB { default int m() { return 1; } }
|
|
|
|
|
|
|
|
abstract class AB implements IA, IB {}
|
|
|
|
}
|