java-topology/test/langtools/tools/javac/recovery/SuperMethodCallBroken.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

15 lines
493 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8259235
* @summary Invocation of a method from a superinterface in a class that has an erroneous supertype
* should not crash javac.
* @compile/fail/ref=SuperMethodCallBroken.out -XDdev -XDrawDiagnostics SuperMethodCallBroken.java
*/
public abstract class SuperMethodCallBroken extends Undef implements I, java.util.List<String> {
public void test() {
I.super.test();
}
}
interface I {
public default void test() {}
}