blob: c77cb443647fc236f015e95b7e01fdb6a7c5613b [file] [log] [blame]
/*
* Copyright (c) 2002, 2018, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* 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.
*/
package nsk.jdb.stop_in.stop_in002;
import nsk.share.*;
import nsk.share.jpda.*;
import nsk.share.jdb.*;
import java.io.*;
/* This is debuggee aplication */
public class stop_in002a {
public static void main(String args[]) {
stop_in002a _stop_in002a = new stop_in002a();
// lastBreak();
System.exit(stop_in002.JCK_STATUS_BASE + _stop_in002a.runIt(args, System.out));
}
static void lastBreak () {}
public int runIt(String args[], PrintStream out) {
JdbArgumentHandler argumentHandler = new JdbArgumentHandler(args);
Log log = new Log(out, argumentHandler);
stop_in002b b = new stop_in002b();
stop_in002b.StaticNested.m1();
b.inn.m2();
b.foo(1);
log.display("Debuggee PASSED");
return stop_in002.PASSED;
}
}
class stop_in002b {
static int intField = 0;
Inner inn = null;
static { intField = 1; }
stop_in002b () {
intField++;
inn = new Inner();
}
static class StaticNested {
public static void m1() {}
}
class Inner {
public void m2() {}
}
final int foo (int i) {return i++;}
}