java-topology/test/langtools/tools/javac/processing/6511613/clss41701.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

22 lines
631 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6511613
* @summary javac unexpectedly doesn't fail in some cases if an annotation processor specified
* @library /tools/javac/lib
* @modules java.compiler
* jdk.compiler
* @build JavacTestingAbstractProcessor DummyProcessor
* @compile/fail/ref=clss41701.out -XDrawDiagnostics clss41701.java
* @compile/fail/ref=clss41701.out -XDrawDiagnostics -processor DummyProcessor clss41701.java
*/
import java.io.PrintStream;
interface clss41701i {
void run();
}
class clss41701a<A extends clss41701i,
B extends clss41701i,
C extends A&B> {
}