Name: tb29552 Date: 04/27/2001
/*
sample program:
*/
public class Untitled20 {
public String xyz(char[] param) {
return "abc";
}
public static void main(String[] args) {
char[] x = new char[20];
Untitled20 xx = new Untitled20 ();
String bb = xx.xyz(x);
// add a line breakpoint on the next line:
System.out.println(bb); /* stop at Untitled20:18
* run
* print xx.xyz(x)
*/
}
}
======================================================================
tim.bell@Eng 2001-04-30
This seems to affect only arrays of primitive type.
I modified Untitled20.java as follows:
/*
sample program:
*/
public class Untitled20 {
public String xyz(char[] param) {
return "abc";
}
public String xyz2(Object[] param) {
return "def";
}
public static void main(String[] args) {
char[] x = new char[20];
Object[] y = new Object[20];
Untitled20 xx = new Untitled20 ();
String bb = xx.xyz(x);
String cc = xx.xyz2(y);
// add a line breakpoint on the next line:
System.out.println(bb); /* stop at Untitled20:24
* run
* print xx.xyz2(y)
* print xx.xyz(x)
*/
System.out.println(cc);
}
}
Once inside jdb and at a breakpoint on line 24, I evaluated
"print xx.xyz2(y)" 20 times with no error. Next I did a
"print xx.xyz(x)" and got the Signal 11 first time.