1 /* 2 * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 25 package nsk.jdi.Field.isTransient; 26 27 import nsk.share.*; 28 import nsk.share.jpda.*; 29 import nsk.share.jdi.*; 30 31 32 public class istrans001a { 33 boolean z0, z1[]={z0}, z2[][]={z1}; 34 byte b0, b1[]={b0}, b2[][]={b1}; 35 char c0, c1[]={c0}, c2[][]={c1}; 36 double d0, d1[]={d0}, d2[][]={d1}; 37 float f0, f1[]={f0}, f2[][]={f1}; 38 int i0, i1[]={i0}, i2[][]={i1}; 39 long l0, l1[]={l0}, l2[][]={l1}; 40 41 transient boolean z0T, z1T[]={z0T}, z2T[][]={z1T}; 42 transient byte b0T, b1T[]={b0T}, b2T[][]={b1T}; 43 transient char c0T, c1T[]={c0T}, c2T[][]={c1T}; 44 transient double d0T, d1T[]={d0T}, d2T[][]={d1T}; 45 transient float f0T, f1T[]={f0T}, f2T[][]={f1T}; 46 transient int i0T, i1T[]={i0T}, i2T[][]={i1T}; 47 transient long l0T, l1T[]={l0T}, l2T[][]={l1T}; 48 49 static long lS0, lS1[]={lS0}, lS2[][]={lS1}; 50 private long lP0, lP1[]={lP0}, lP2[][]={lP1}; 51 public long lU0, lU1[]={lU0}, lU2[][]={lU1}; 52 protected long lR0, lR1[]={lR0}, lR2[][]={lR1}; 53 volatile long lV0, lV1[]={lV0}, lV2[][]={lV1}; 54 final long lF0 = 999, lF1[]={lF0}, lF2[][]={lF1}; 55 56 transient static long lS0T, lS1T[]={lS0T}, lS2T[][]={lS1T}; 57 transient private long lP0T, lP1T[]={lP0T}, lP2T[][]={lP1T}; 58 transient public long lU0T, lU1T[]={lU0T}, lU2T[][]={lU1T}; 59 transient protected long lR0T, lR1T[]={lR0T}, lR2T[][]={lR1T}; 60 transient volatile long lV0T, lV1T[]={lV0T}, lV2T[][]={lV1T}; 61 transient final long lF0T = 999, lF1T[]={lF0T}, lF2T[][]={lF1T}; 62 63 class Class {} 64 Class X0 = new Class(), X1[]={X0}, X2[][]={X1}; 65 Boolean Z0, Z1[]={Z0}, Z2[][]={Z1}; 66 Byte B0, B1[]={B0}, B2[][]={B1}; 67 Character C0, C1[]={C0}, C2[][]={C1}; 68 Double D0, D1[]={D0}, D2[][]={D1}; 69 Float F0, F1[]={F0}, F2[][]={F1}; 70 Integer I0, I1[]={I0}, I2[][]={I1}; 71 Long L0, L1[]={L0}, L2[][]={L1}; 72 String S0, S1[]={S0}, S2[][]={S1}; 73 Object O0, O1[]={O0}, O2[][]={O1}; 74 75 transient Class X0T, X1T[]={X0T}, X2T[][]={X1T}; 76 transient Boolean Z0T, Z1T[]={Z0T}, Z2T[][]={Z1T}; 77 transient Byte B0T, B1T[]={B0T}, B2T[][]={B1T}; 78 transient Character C0T, C1T[]={C0T}, C2T[][]={C1T}; 79 transient Double D0T, D1T[]={D0T}, D2T[][]={D1T}; 80 transient Float F0T, F1T[]={F0T}, F2T[][]={F1T}; 81 transient Integer I0T, I1T[]={I0T}, I2T[][]={I1T}; 82 transient Long L0T, L1T[]={L0T}, L2T[][]={L1T}; 83 transient String S0T, S1T[]={S0T}, S2T[][]={S1T}; 84 transient Object O0T, O1T[]={O0T}, O2T[][]={O1T}; 85 86 static Long LS0, LS1[]={LS0}, LS2[][]={LS1}; 87 private Long LP0, LP1[]={LP0}, LP2[][]={LP1}; 88 public Long LU0, LU1[]={LU0}, LU2[][]={LU1}; 89 protected Long LR0, LR1[]={LR0}, LR2[][]={LR1}; 90 volatile Long LV0, LV1[]={LV0}, LV2[][]={LV1}; 91 final Long LF0 = new Long(999), LF1[]={LF0}, LF2[][]={LF1}; 92 93 transient static Long LS0T, LS1T[]={LS0T}, LS2T[][]={LS1T}; 94 transient private Long LP0T, LP1T[]={LP0T}, LP2T[][]={LP1T}; 95 transient public Long LU0T, LU1T[]={LU0T}, LU2T[][]={LU1T}; 96 transient protected Long LR0T, LR1T[]={LR0T}, LR2T[][]={LR1T}; 97 transient volatile Long LV0T, LV1T[]={LV0T}, LV2T[][]={LV1T}; 98 transient final Long LF0T = new Long(999), LF1T[]={LF0T}, 99 LF2T[][]={LF1T}; 100 101 interface Inter {} 102 Inter E0, E1[]={E0}, E2[][]={E1}; 103 transient Inter E0T, E1T[]={E0T}, E2T[][]={E1T}; 104 105 static Inter ES0, ES1[]={ES0}, ES2[][]={ES1}; 106 private Inter EP0, EP1[]={EP0}, EP2[][]={EP1}; 107 public Inter EU0, EU1[]={EU0}, EU2[][]={EU1}; 108 protected Inter ER0, ER1[]={ER0}, ER2[][]={ER1}; 109 volatile Inter EV0, EV1[]={EV0}, EV2[][]={EV1}; 110 final Inter EF0 = null, EF1[]={EF0}, EF2[][]={EF1}; 111 112 transient static Inter ES0T, ES1T[]={ES0T}, ES2T[][]={ES1T}; 113 transient private Inter EP0T, EP1T[]={EP0T}, EP2T[][]={EP1T}; 114 transient public Inter EU0T, EU1T[]={EU0T}, EU2T[][]={EU1T}; 115 transient protected Inter ER0T, ER1T[]={ER0T}, ER2T[][]={ER1T}; 116 transient volatile Inter EV0T, EV1T[]={EV0T}, EV2T[][]={EV1T}; 117 transient final Inter EF0T = null, EF1T[]={EF0T}, EF2T[][]={EF1T}; 118 main(String argv[])119 public static void main (String argv[]) { 120 ArgumentHandler argHandler = new ArgumentHandler(argv); 121 Log log = new Log(System.err, argHandler); 122 IOPipe pipe = argHandler.createDebugeeIOPipe(log); 123 124 log.display("DEBUGEE> debugee started."); 125 pipe.println("ready"); 126 String instruction = pipe.readln(); 127 if (instruction.equals("quit")) { 128 log.display("DEBUGEE> \"quit\" signal recieved."); 129 log.display("DEBUGEE> completed succesfully."); 130 System.exit(95); 131 } 132 log.complain("DEBUGEE FAILURE> unexpected signal " 133 + "(no \"quit\") - " + instruction); 134 log.complain("DEBUGEE FAILURE> TEST FAILED"); 135 System.exit(97); 136 } 137 } 138