/*
* @test /nodynamiccopyright/
* @bug 6987475
*
* @summary Order of declarations affects whether abstract method considered overridden
* @compile/fail/ref=T6987475neg.out -XDrawDiagnostics T6987475neg.java
*/
class T6987475neg {
static abstract class Base {
public void go(String s) { }
public abstract void go(A a);
}
static abstract class BaseReverse {
public abstract void go(A a);
public void go(String s) { }
}
static abstract class Sub extends Base {
public abstract void go(A a);
}
static abstract class SubReverse extends BaseReverse {
public abstract void go(A a);
}
static class Impl1 extends Sub { }
static class Impl2 extends SubReverse { }
}