java-topology/test/jdk/com/sun/jdi/redefineMethod/Different_RedefineSubTarg.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

37 lines
986 B
Java

/* /nodynamiccopyright/ */ class RedefineSubTarg { // 1 - do not change line numbers
// add two lines
// to check line number tables
void top() {
return; // 5
}
void nemcp2(int eights) {
eights = 88;
top(); // 9
}
void nemcp1() {
// reserve this line
nemcp2(888); // 13
}
void emcp2() {
nemcp1(); // 16
return; // 17
}
void emcp1(int whoseArg) {
int parawham = 12;
emcp2(); // 21
return; // 22
}
void bottom() {
emcp1(56); // 25
return; // 26
}
static void stnemcp() {
(new RedefineSubTarg()).bottom(); // 29
// 30
Integer.toString(4);
}
static void stemcp() {
stnemcp(); // 34
return; // 35
}
}