To reproduce use:
public class test {
static String fnCall(String str) {
return str;
}
public static void main(String[] argv) {
String atr = fnCall("test this");
if (atr.indexOf("th") != 0) {
System.out.println ("\"th\" is inside the string");
} else {
System.out.println ("\"th\" is not inside the string");
}
atr = fnCall("test this");
}
}
jdb commands:
stop in test.main
run
next
public class test {
static String fnCall(String str) {
return str;
}
public static void main(String[] argv) {
String atr = fnCall("test this");
if (atr.indexOf("th") != 0) {
System.out.println ("\"th\" is inside the string");
} else {
System.out.println ("\"th\" is not inside the string");
}
atr = fnCall("test this");
}
}
jdb commands:
stop in test.main
run
next
- duplicates
-
JDK-4338608 next does not work properly in jdb
- Closed