langtools/test/tools/javac/OverridePosition.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 10 06bc494ca11e
child 2984 e15ff3a34054
permissions -rw-r--r--
Initial load

/*
 * @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 {
}