7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 6517249
27 * @modules jdk.jdi
28 * @ignore 6951287
29 * @summary JDWP: Cannot do an invokeMethod after a popFrames operation
30 *
31 * @author jjh
32 *
33 * @run build TestScaffold VMConnection TargetListener TargetAdapter
34 * @run compile -g PopAndInvokeTest.java
35 * @run driver PopAndInvokeTest
36 */
37 import com.sun.jdi.*;
38 import com.sun.jdi.event.*;
39 import java.util.*;
40
41 class PopAndInvokeTarg {
42 static boolean waiting = false;
43
44 public static void A() {
45 System.out.println(" debuggee: in A");
46 }
47
48 public static void invokeee() {
49 System.out.println(" debuggee: invokee");
50 }
51
52 public static void waiter() {
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 6517249
27 * @summary JDWP: Cannot do an invokeMethod after a popFrames operation
28 * @author jjh
29 *
30 * @ignore 6951287
31 *
32 * @run build TestScaffold VMConnection TargetListener TargetAdapter
33 * @run compile -g PopAndInvokeTest.java
34 * @run driver PopAndInvokeTest
35 */
36 import com.sun.jdi.*;
37 import com.sun.jdi.event.*;
38 import java.util.*;
39
40 class PopAndInvokeTarg {
41 static boolean waiting = false;
42
43 public static void A() {
44 System.out.println(" debuggee: in A");
45 }
46
47 public static void invokeee() {
48 System.out.println(" debuggee: invokee");
49 }
50
51 public static void waiter() {
|