Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues/getvalues002a.java
41162 views
/*1* Copyright (c) 2001, 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*/222324package nsk.jdi.ArrayReference.getValues;2526import nsk.share.*;27import nsk.share.jpda.*;28import nsk.share.jdi.*;293031public class getvalues002a {32public static void main (String argv[]) {33ArgumentHandler argHandler = new ArgumentHandler(argv);34Log log = new Log(System.err, argHandler);35IOPipe pipe = argHandler.createDebugeeIOPipe(log);36getvalues002aClassToCheck classToCheck = new getvalues002aClassToCheck();373839log.display("DEBUGEE> debugee started.");40pipe.println("ready");41String instruction = pipe.readln();42if (instruction.equals("quit")) {43log.display("DEBUGEE> \"quit\" signal recieved.");44log.display("DEBUGEE> completed succesfully.");45System.exit(95);46}47log.complain("DEBUGEE FAILURE> unexpected signal "48+ "(no \"quit\") - " + instruction);49log.complain("DEBUGEE FAILURE> TEST FAILED");50System.exit(97);51}52}5354class getvalues002aClassToCheck {55static boolean z1[] = {};56static byte b1[] = {};57static char c1[] = {};58static double d1[] = {};59static float f1[] = {};60static int i1[] = {};61static long l1[] = {};62static short r1[] = {};6364static final long lF1[] = {};65static private long lP1[] = {};66static public long lU1[] = {};67static protected long lR1[] = {};68static transient long lT1[] = {};69static volatile long lV1[] = {};70}717273