8151064: com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently
authoraeriksso
Thu, 03 Mar 2016 18:05:48 +0100
changeset 36428 a1e1d52449d1
parent 36427 1be706dbb3b8
child 36429 e0141e257bc7
child 36650 30fc6a49e8f2
8151064: com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently Reviewed-by: dsamersoff, sspitsyn
jdk/test/com/sun/jdi/RedefineAddPrivateMethod.sh
--- a/jdk/test/com/sun/jdi/RedefineAddPrivateMethod.sh	Thu Mar 03 12:34:55 2016 +0100
+++ b/jdk/test/com/sun/jdi/RedefineAddPrivateMethod.sh	Thu Mar 03 18:05:48 2016 +0100
@@ -35,7 +35,8 @@
     cat <<EOF > $1.java.1
 public class $1 {
     static public void main(String[] args) {
-        // @1 breakpoint @2 breakpoint
+        System.out.println("@1 breakpoint");
+        System.out.println("@2 breakpoint");
     }
 
     // @1 uncomment private static void test() {}
@@ -50,7 +51,8 @@
     runToBkpt @1
     redefineClass @1
     setBkpts @2
-    cmd allowExit cont
+    runToBkpt @2
+    cmd exitJdb
 }