test/com/sun/jdi/PopAndInvokeTest.java

Print this page




   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  *
  29  *  @author jjh
  30  *
  31  *  @run build TestScaffold VMConnection TargetListener TargetAdapter
  32  *  @run compile -g PopAndInvokeTest.java
  33  *  @run main PopAndInvokeTest
  34  */
  35 import com.sun.jdi.*;
  36 import com.sun.jdi.event.*;
  37 import java.util.*;
  38 
  39 class PopAndInvokeTarg {
  40     static boolean waiting = false;
  41 
  42     public static void A() {
  43         System.out.println("    debuggee: in A");
  44     }
  45 
  46     public static void invokeee() {




   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  *  @ignore 6951287
  28  *  @summary JDWP: Cannot do an invokeMethod after a popFrames operation
  29  *
  30  *  @author jjh
  31  *
  32  *  @run build TestScaffold VMConnection TargetListener TargetAdapter
  33  *  @run compile -g PopAndInvokeTest.java
  34  *  @run main 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() {