langtools/test/tools/javac/OverridePosition.java
author jjg
Thu, 19 Jun 2008 15:52:31 -0700 (2008-06-19)
changeset 811 687d51cb403b
parent 10 06bc494ca11e
child 2984 e15ff3a34054
permissions -rw-r--r--
6716866: some javac regression tests fail to compile with re-orged file manager Reviewed-by: darcy
/*
 * @test  /nodynamiccopyright/
 * @bug 4524388 4785453
 * @summary "attemping to assign weaker access" message doesn't give method line number
 * @author Neal Gafter
 *
 * @compile/fail/ref=OverridePosition.out -XDstdout -XDdiags=%b:%l:%_%m OverridePosition.java
 */

package T4524388;

interface Interface {
    void method();
}

class Testa implements Interface {
    void method() {}
}

class A {
    void method() {}
}

class B extends A implements Interface {
}