Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdb/klass/class001/class001a.java
40955 views
/*1* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223package nsk.jdb.klass.class001;2425import nsk.share.*;26import nsk.share.jpda.*;27import nsk.share.jdb.*;2829import java.io.*;3031/* This is debuggee aplication */32public class class001a {3334/* TEST DEPENDANT VARIABLES AND CONSTANTS */35static final String PACKAGE_NAME = "nsk.jdb.klass.class001";3637public static void main(String args[]) {38class001a _class001a = new class001a();39System.exit(class001.JCK_STATUS_BASE + _class001a.runIt(args, System.out));40}414243static void lastBreak () {}4445public int runIt(String args[], PrintStream out) {46JdbArgumentHandler argumentHandler = new JdbArgumentHandler(args);47Log log = new Log(out, argumentHandler);4849init();5051log.display("Debuggee PASSED");52return class001.PASSED;53}5455interface InnerInt1 {}56public class Inner2 implements InnerInt1 {}57private class Inner3 {}58protected class Inner4 {}59abstract class Inner5 {}60final class Inner6 extends Inner5{}6162private void init () {63Outer1 o1 = new Outer1();64Inner2 i2 = new Inner2();65Inner3 i3 = new Inner3();66Inner4 i4 = new Inner4();67Inner6 i6 = new Inner6();6869lastBreak();70}71}7273class Outer1 {}747576