jdk-24/test/langtools/tools/javac/annotations/neg/OverrideNo.java

18 lines
293 B
Java
Raw Normal View History

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