< prev index next >

test/com/sun/jdi/BreakpointTest.java

Print this page
rev 16940 : 8177507: line number sensitive tests for jdi should be unified
Reviewed-by: duke

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -19,23 +19,24 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
+//    THIS TEST IS LINE NUMBER SENSITIVE
+
 /**
  *  @test
  *  @bug 6496524
+ * @key intermittent
  *  @summary Setting breakpoint in jdb crashes Hotspot JVM
- *
  *  @author jjh
  *
- *  @key intermittent
- *  @modules jdk.jdi
  *  @run build TestScaffold VMConnection TargetListener TargetAdapter
  *  @run compile -g BreakpointTest.java
  *  @run driver BreakpointTest
  */
+
 import com.sun.jdi.*;
 import com.sun.jdi.event.*;
 import com.sun.jdi.request.*;
 
 import java.util.*;

@@ -45,11 +46,10 @@
 // bkpt is hit, the debugger disables it, resumes
 // the debuggee, waits a bit, and enables the bkpt again.
 
 class BreakpointTarg {
     public final static int BKPT_LINE = 56;
-            // LINE NUMBER SENSITIVE
 
     public static long count;
     static void doit() {
         Object[] roots = new Object[200000];
         while (true) {
< prev index next >