Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdb/classes/classes001/classes001a.java
40952 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.classes.classes001;2425import nsk.share.*;26import nsk.share.jpda.*;27import nsk.share.jdb.*;2829import java.io.*;3031/* This is debuggee aplication */32public class classes001a {3334/* TEST DEPENDANT VARIABLES AND CONSTANTS */35static final String PACKAGE_NAME = "nsk.jdb.classes.classes001";3637public static void main(String args[]) {38classes001a _classes001a = new classes001a();39System.exit(classes001.JCK_STATUS_BASE + _classes001a.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 classes001.PASSED;53}5455class Inner1 {}56interface InnerInt1 {}5758public class Inner2 {}59public interface InnerInt2 {}6061private class Inner3 {}62private interface InnerInt3 {}6364protected class Inner4 {}65protected interface InnerInt4 {}6667abstract class Inner5 {}68abstract interface InnerInt5 {}6970final class Inner6 extends Inner5{}7172class Inner7 extends Outer2{}73class Inner8 implements OuterInt1, OuterInt2, InnerInt1, InnerInt2, InnerInt3, InnerInt4, InnerInt5 {}7475private void init () {76Outer1 o1 = new Outer1();77Outer3 o3 = new Outer3();78Inner1 i1 = new Inner1();79Inner2 i2 = new Inner2();80Inner3 i3 = new Inner3();81Inner4 i4 = new Inner4();82Inner6 i6 = new Inner6();83Inner7 i7 = new Inner7();84Inner8 i8 = new Inner8();8586lastBreak();87}88}8990class Outer1 {}91interface OuterInt1 {}9293abstract class Outer2 {}94abstract interface OuterInt2 {}9596final class Outer3 {}979899