Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdb/print/print002/print002a.java
40951 views
/*1* Copyright (c) 2003, 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.print.print002;2425import nsk.share.*;26import nsk.share.jpda.*;27import nsk.share.jdb.*;2829import java.io.*;3031/* This is debuggee aplication */32public class print002a {3334static print002a _print002a = new print002a();3536public static void main(String args[]) {37System.exit(print002.JCK_STATUS_BASE + _print002a.runIt(args, System.out));38}3940static void lastBreak () {}4142public int runIt(String args[], PrintStream out) {43JdbArgumentHandler argumentHandler = new JdbArgumentHandler(args);44Log log = new Log(out, argumentHandler);4546int i = 2;47int j = 6;48boolean b1 = true;49boolean b2 = false;5051A a = new A();5253synchronized (this) {54lastBreak();55}5657log.display("Debuggee PASSED");58return print002.PASSED;59}60}6162class A {63B b;64A() { b = new B(); }65}6667class B {68C c;69B() { c = new C(); }70}7172class C {73D d;74C() { d = new D(); }75}7677class D {78E e;79D() { e = new E(); }80}8182class E {83F f;84E() { f = new F(); }85}8687class F {88G g;89F() { g = new G(); }90}9192class G {93H h;94G() { h = new H(); }95}9697class H {98I i;99H() { i = new I(); }100}101102class I {103J j;104I() { j = new J(); }105}106107class J {108K k;109J() { k = new K(); }110}111112class K {113L l;114K() { l = new L(); }115}116117class L {118M m;119L() { m = new M(); }120}121122class M {123N n;124M() { n = new N(); }125}126127class N {128O o;129N() { o = new O(); }130}131132class O {133P p;134O() { p = new P(); }135}136137class P {138Q q;139P() { q = new Q(); }140}141142class Q {143R r;144Q() { r = new R(); }145}146147class R {148S s;149R() { s = new S(); }150}151152class S {153T t;154S() { t = new T(); }155}156157class T {158U u;159T() { u = new U(); }160}161162class U {163V v;164U() { v = new V(); }165}166167class V {168W w;169V() { w = new W(); }170}171172class W {173X x;174W() { x = new X(); }175}176177class X {178Y y;179X() { y = new Y(); }180}181182class Y {183Z z;184Y() { z = new Z(); }185}186187class Z {188String s;189Z() { s = "foo";}190}191192193