java-topology/test/langtools/tools/javac/annotations/6359949/T6359949a.java
russell@unturf.com 0a580b313d undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com

Patches, unit tests, benchmarks, whitepaper, and outreach briefs.
Public domain — no copyright claimed. Use freely.
2026-03-26 17:11:57 -04:00

19 lines
384 B
Java

/*
* @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
*/
class Example {
public static void example() {
}
}
class Test extends Example {
@Override
public static void example() {
}
}