changeset 36428:a1e1d52449d1

8151064: com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently Reviewed-by: dsamersoff, sspitsyn
author aeriksso
date Thu, 03 Mar 2016 18:05:48 +0100
parents 1be706dbb3b8
children e0141e257bc7 30fc6a49e8f2
files jdk/test/com/sun/jdi/RedefineAddPrivateMethod.sh
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
 }