jdk-24/test/langtools/tools/javac/annotations/neg/OverrideNo.java
2017-09-12 19:03:39 +02:00

18 lines
293 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4901275 4989669
* @summary JSR175 (7): implement <at>Overrides
* @author gafter
*
* @compile/fail/ref=OverrideNo.out -XDrawDiagnostics OverrideNo.java
*/
package overrideNo;
abstract class A {
}
class B extends A {
@Override void f() {}
}