Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/getValues/getvalues003a.java
41162 views
1
/*
2
* Copyright (c) 2002, 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
package nsk.jdi.ArrayReference.getValues;
25
26
import nsk.share.*;
27
import nsk.share.jpda.*;
28
import nsk.share.jdi.*;
29
30
31
public class getvalues003a {
32
33
static getvalues003aClassToCheck testedObj = new getvalues003aClassToCheck();
34
35
public static void main (String argv[]) {
36
37
ArgumentHandler argHandler = new ArgumentHandler(argv);
38
Log log = new Log(System.err, argHandler);
39
IOPipe pipe = argHandler.createDebugeeIOPipe(log);
40
41
pipe.println("ready");
42
43
String instruction = pipe.readln();
44
45
if ( instruction.equals("quit") ) {
46
log.display("DEBUGEE> \"quit\" signal recieved.");
47
log.display("DEBUGEE> completed succesfully.");
48
System.exit(getvalues003.TEST_FAILED + getvalues003.JCK_STATUS_BASE);
49
}
50
log.complain("DEBUGEE FAILURE> unexpected signal "
51
+ "(no \"quit\") - " + instruction);
52
log.complain("DEBUGEE FAILURE> TEST FAILED");
53
System.exit(getvalues003.TEST_FAILED + getvalues003.JCK_STATUS_BASE);
54
}
55
}
56
57
class getvalues003aClassToCheck {
58
static int[] staticIntArr = {};
59
static Object[] staticObjArr = {};
60
61
public int[] publicIntArrC;
62
protected int[] protecIntArrC;
63
private int[] privatIntArrC;
64
65
public Object[] publicObjArrC;
66
protected Object[] protecObjArrC;
67
private Object[] privatObjArrC;
68
69
public getvalues003aClassToCheck() {
70
publicIntArrC = createIntArray();
71
protecIntArrC = createIntArray();
72
privatIntArrC = createIntArray();
73
74
publicObjArrC = createObjArray();
75
protecObjArrC = createObjArray();
76
privatObjArrC = createObjArray();
77
}
78
79
static private int[] createIntArray() {
80
return new int[0];
81
}
82
83
static private Object[] createObjArray() {
84
return new Object[0];
85
}
86
87
}
88
89