Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/ArrayReference/setValue/setvalue003a.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.setValue;
25
26
import nsk.share.*;
27
import nsk.share.jpda.*;
28
import nsk.share.jdi.*;
29
30
31
public class setvalue003a {
32
33
static setvalue003aClassToCheck testedObj = new setvalue003aClassToCheck();
34
35
// Value parameter's array for debugee's int-arrays
36
public static byte[] BYTE_VALUE_PARAM = { Byte.MIN_VALUE,
37
Byte.MAX_VALUE
38
};
39
40
public static char[] CHAR_VALUE_PARAM = { Character.MIN_VALUE,
41
Character.MAX_VALUE
42
};
43
44
public static double[] DBL_VALUE_PARAM = { Double.MIN_VALUE,
45
Double.MAX_VALUE,
46
Double.NEGATIVE_INFINITY,
47
Double.POSITIVE_INFINITY
48
};
49
50
public static float[] FLT_VALUE_PARAM = { Float.MIN_VALUE,
51
Float.MAX_VALUE,
52
Float.NEGATIVE_INFINITY,
53
Float.POSITIVE_INFINITY
54
};
55
56
public static int[] INT_VALUE_PARAM = { Integer.MIN_VALUE,
57
Integer.MAX_VALUE
58
};
59
60
public static long[] LNG_VALUE_PARAM = { Long.MIN_VALUE,
61
Long.MAX_VALUE
62
};
63
64
public static short[] SHORT_VALUE_PARAM = { Short.MIN_VALUE,
65
Short.MAX_VALUE
66
};
67
68
public static void main (String argv[]) {
69
70
ArgumentHandler argHandler = new ArgumentHandler(argv);
71
Log log = new Log(System.err, argHandler);
72
IOPipe pipe = argHandler.createDebugeeIOPipe(log);
73
pipe.println("ready");
74
75
String instruction = pipe.readln();
76
77
if ( instruction.equals("quit") ) {
78
log.display("DEBUGEE> \"quit\" signal received.");
79
log.display("DEBUGEE> completed succesfully.");
80
System.exit(setvalue003.TEST_PASSED + setvalue003.JCK_STATUS_BASE);
81
}
82
log.complain("DEBUGEE FAILURE> unexpected signal "
83
+ "(no \"quit\") - " + instruction);
84
log.complain("DEBUGEE FAILURE> TEST FAILED");
85
System.exit(setvalue003.TEST_FAILED + setvalue003.JCK_STATUS_BASE);
86
}
87
}
88
89
class setvalue003aClassToCheck {
90
public byte[] publicByteArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
91
protected byte[] protecByteArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
92
private byte[] privatByteArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
93
94
public char[] publicCharArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
95
protected char[] protecCharArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
96
private char[] privatCharArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
97
98
public double[] publicDoubleArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
99
protected double[] protecDoubleArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
100
private double[] privatDoubleArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
101
102
public float[] publicFloatArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
103
protected float[] protecFloatArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
104
private float[] privatFloatArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
105
106
public int[] publicIntArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
107
protected int[] protecIntArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
108
private int[] privatIntArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
109
110
public long[] publicLongArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
111
protected long[] protecLongArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
112
private long[] privatLongArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
113
114
public short[] publicShortArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
115
protected short[] protecShortArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
116
private short[] privatShortArr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
117
}
118
119