Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValue/getvalue002a.java
41161 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.getValue;2526import nsk.share.*;27import nsk.share.jpda.*;28import nsk.share.jdi.*;293031public class getvalue002a {32public static void main (String argv[]) {33ArgumentHandler argHandler = new ArgumentHandler(argv);34Log log = new Log(System.err, argHandler);35IOPipe pipe = argHandler.createDebugeeIOPipe(log);36getvalue002aClassToCheck classToCheck = new getvalue002aClassToCheck();3738log.display("DEBUGEE> debugee started.");39pipe.println("ready");40String instruction = pipe.readln();41if (instruction.equals("quit")) {42log.display("DEBUGEE> \"quit\" signal recieved.");43log.display("DEBUGEE> completed succesfully.");44System.exit(95);45}46log.complain("DEBUGEE FAILURE> unexpected signal "47+ "(no \"quit\") - " + instruction);48log.complain("DEBUGEE FAILURE> TEST FAILED");49System.exit(97);50}51}5253class getvalue002aClassToCheck {54static boolean z1[] = {true, false, false, true, true};55static byte b1[] = {Byte.MIN_VALUE, -1, 0, 1, Byte.MAX_VALUE};56static char c1[] = {Character.MIN_VALUE, '\u00ff', '\uff00',57'\u1234', '\u4321', Character.MAX_VALUE};58static double d1[] = {Double.NEGATIVE_INFINITY};59static float f1[] = {Float.POSITIVE_INFINITY};60static int i1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};61static long l1[] = {Long.MIN_VALUE, Long.MAX_VALUE};62static short r1[] = {-2, -1, 0, 1, 2};6364static final long lF1[] = {};65static private long lP1[] = {-1, 0};66static public long lU1[] = {0, 1, 2};67static protected long lR1[] = {0, 1, 2, 3};68static transient long lT1[] = {1, 2, 3, 4, 5};69static volatile long lV1[] = {1, 2, 3, 4, 5, 6};70}717273