jdk/test/com/sun/jdi/RedefineFinal.sh
changeset 23057 c67ddf10398e
parent 23046 0b0407b1e2a5
child 31907 cafb1bf49cfb
equal deleted inserted replaced
23056:af6eda86177e 23057:c67ddf10398e
    40     cat <<EOF > $1.java.1
    40     cat <<EOF > $1.java.1
    41 
    41 
    42 public final class $1 {
    42 public final class $1 {
    43 
    43 
    44     public int m1(int i) {
    44     public int m1(int i) {
    45 	// @1 uncomment System.out.println("I'm here");
    45         // @1 uncomment System.out.println("I'm here");
    46 	return m2(i, 1000);
    46         return m2(i, 1000);
    47     }
    47     }
    48 
    48 
    49     public int m2(int i, int j) {
    49     public int m2(int i, int j) {
    50 	if (i < 0 || j < 0) {	// @1 breakpoint
    50         if (i < 0 || j < 0) {   // @1 breakpoint
    51             throw new IllegalArgumentException();
    51             throw new IllegalArgumentException();
    52 	}
    52         }
    53 	return i+j;
    53         return i+j;
    54     }
    54     }
    55 
    55 
    56     $1() {
    56     $1() {
    57         m1(0);
    57         m1(0);
    58         m1(0);
    58         m1(0);
    59     }
    59     }
    60 
    60 
    61     public static void main(String args[]) {
    61     public static void main(String args[]) {
    62 	new $1();
    62         new $1();
    63     }
    63     }
    64 }
    64 }
    65 EOF
    65 EOF
    66 }
    66 }
    67 
    67