2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-27 15:11:57 -08:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6359949
|
|
|
|
* @summary (at)Override of static shouldn't be accepted (compiler shouldissue an error/warning)
|
2015-01-27 15:11:57 -08:00
|
|
|
* @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() {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|