jdk-24/test/langtools/tools/javac/annotations/6359949/T6359949a.java

20 lines
384 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
* @bug 6359949 8068836
* @summary (at)Override of static methods shouldn't be accepted (compiler should issue an error)
* @compile/fail/ref=T6359949a.out -XDrawDiagnostics T6359949a.java
2007-12-01 00:00:00 +00:00
*/
class Example {
public static void example() {
}
}
class Test extends Example {
@Override
public static void example() {
}
}