Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/isTransient/istrans001a.java
41161 views
/*1* Copyright (c) 2000, 2021, 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*/222324package nsk.jdi.Field.isTransient;2526import nsk.share.*;27import nsk.share.jpda.*;28import nsk.share.jdi.*;293031public class istrans001a {32boolean z0, z1[]={z0}, z2[][]={z1};33byte b0, b1[]={b0}, b2[][]={b1};34char c0, c1[]={c0}, c2[][]={c1};35double d0, d1[]={d0}, d2[][]={d1};36float f0, f1[]={f0}, f2[][]={f1};37int i0, i1[]={i0}, i2[][]={i1};38long l0, l1[]={l0}, l2[][]={l1};3940transient boolean z0T, z1T[]={z0T}, z2T[][]={z1T};41transient byte b0T, b1T[]={b0T}, b2T[][]={b1T};42transient char c0T, c1T[]={c0T}, c2T[][]={c1T};43transient double d0T, d1T[]={d0T}, d2T[][]={d1T};44transient float f0T, f1T[]={f0T}, f2T[][]={f1T};45transient int i0T, i1T[]={i0T}, i2T[][]={i1T};46transient long l0T, l1T[]={l0T}, l2T[][]={l1T};4748static long lS0, lS1[]={lS0}, lS2[][]={lS1};49private long lP0, lP1[]={lP0}, lP2[][]={lP1};50public long lU0, lU1[]={lU0}, lU2[][]={lU1};51protected long lR0, lR1[]={lR0}, lR2[][]={lR1};52volatile long lV0, lV1[]={lV0}, lV2[][]={lV1};53final long lF0 = 999, lF1[]={lF0}, lF2[][]={lF1};5455transient static long lS0T, lS1T[]={lS0T}, lS2T[][]={lS1T};56transient private long lP0T, lP1T[]={lP0T}, lP2T[][]={lP1T};57transient public long lU0T, lU1T[]={lU0T}, lU2T[][]={lU1T};58transient protected long lR0T, lR1T[]={lR0T}, lR2T[][]={lR1T};59transient volatile long lV0T, lV1T[]={lV0T}, lV2T[][]={lV1T};60transient final long lF0T = 999, lF1T[]={lF0T}, lF2T[][]={lF1T};6162class Class {}63Class X0 = new Class(), X1[]={X0}, X2[][]={X1};64Boolean Z0, Z1[]={Z0}, Z2[][]={Z1};65Byte B0, B1[]={B0}, B2[][]={B1};66Character C0, C1[]={C0}, C2[][]={C1};67Double D0, D1[]={D0}, D2[][]={D1};68Float F0, F1[]={F0}, F2[][]={F1};69Integer I0, I1[]={I0}, I2[][]={I1};70Long L0, L1[]={L0}, L2[][]={L1};71String S0, S1[]={S0}, S2[][]={S1};72Object O0, O1[]={O0}, O2[][]={O1};7374transient Class X0T, X1T[]={X0T}, X2T[][]={X1T};75transient Boolean Z0T, Z1T[]={Z0T}, Z2T[][]={Z1T};76transient Byte B0T, B1T[]={B0T}, B2T[][]={B1T};77transient Character C0T, C1T[]={C0T}, C2T[][]={C1T};78transient Double D0T, D1T[]={D0T}, D2T[][]={D1T};79transient Float F0T, F1T[]={F0T}, F2T[][]={F1T};80transient Integer I0T, I1T[]={I0T}, I2T[][]={I1T};81transient Long L0T, L1T[]={L0T}, L2T[][]={L1T};82transient String S0T, S1T[]={S0T}, S2T[][]={S1T};83transient Object O0T, O1T[]={O0T}, O2T[][]={O1T};8485static Long LS0, LS1[]={LS0}, LS2[][]={LS1};86private Long LP0, LP1[]={LP0}, LP2[][]={LP1};87public Long LU0, LU1[]={LU0}, LU2[][]={LU1};88protected Long LR0, LR1[]={LR0}, LR2[][]={LR1};89volatile Long LV0, LV1[]={LV0}, LV2[][]={LV1};90final Long LF0 = Long.valueOf(999), LF1[]={LF0}, LF2[][]={LF1};9192transient static Long LS0T, LS1T[]={LS0T}, LS2T[][]={LS1T};93transient private Long LP0T, LP1T[]={LP0T}, LP2T[][]={LP1T};94transient public Long LU0T, LU1T[]={LU0T}, LU2T[][]={LU1T};95transient protected Long LR0T, LR1T[]={LR0T}, LR2T[][]={LR1T};96transient volatile Long LV0T, LV1T[]={LV0T}, LV2T[][]={LV1T};97transient final Long LF0T = Long.valueOf(999), LF1T[]={LF0T},98LF2T[][]={LF1T};99100interface Inter {}101Inter E0, E1[]={E0}, E2[][]={E1};102transient Inter E0T, E1T[]={E0T}, E2T[][]={E1T};103104static Inter ES0, ES1[]={ES0}, ES2[][]={ES1};105private Inter EP0, EP1[]={EP0}, EP2[][]={EP1};106public Inter EU0, EU1[]={EU0}, EU2[][]={EU1};107protected Inter ER0, ER1[]={ER0}, ER2[][]={ER1};108volatile Inter EV0, EV1[]={EV0}, EV2[][]={EV1};109final Inter EF0 = null, EF1[]={EF0}, EF2[][]={EF1};110111transient static Inter ES0T, ES1T[]={ES0T}, ES2T[][]={ES1T};112transient private Inter EP0T, EP1T[]={EP0T}, EP2T[][]={EP1T};113transient public Inter EU0T, EU1T[]={EU0T}, EU2T[][]={EU1T};114transient protected Inter ER0T, ER1T[]={ER0T}, ER2T[][]={ER1T};115transient volatile Inter EV0T, EV1T[]={EV0T}, EV2T[][]={EV1T};116transient final Inter EF0T = null, EF1T[]={EF0T}, EF2T[][]={EF1T};117118public static void main (String argv[]) {119ArgumentHandler argHandler = new ArgumentHandler(argv);120Log log = new Log(System.err, argHandler);121IOPipe pipe = argHandler.createDebugeeIOPipe(log);122123log.display("DEBUGEE> debugee started.");124pipe.println("ready");125String instruction = pipe.readln();126if (instruction.equals("quit")) {127log.display("DEBUGEE> \"quit\" signal recieved.");128log.display("DEBUGEE> completed succesfully.");129System.exit(95);130}131log.complain("DEBUGEE FAILURE> unexpected signal "132+ "(no \"quit\") - " + instruction);133log.complain("DEBUGEE FAILURE> TEST FAILED");134System.exit(97);135}136}137138139