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

29 lines
488 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6598104 8032211
* @build p.Dep1 p.Dep2
* @compile/ref=NestedDeprecation.out -Xlint:deprecation -XDrawDiagnostics NestedDeprecation.java
*/
package p;
import p.Dep1.A;
import static p.Dep1.B;
import static p.Dep1.method;
import static p.Dep1.field;
import p.Dep2.C;
import p.Dep2.D;
class NestedDeprecation {
Dep1 f1;
A f2;
Dep2 f3;
B f4;
C f5;
D f6;
static {
method();
String f = field;
}
}