Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/modifiers/modifiers001a.java
41161 views
1
/*
2
* Copyright (c) 2000, 2021, 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.Accessible.modifiers;
25
26
import nsk.share.*;
27
import nsk.share.jpda.*;
28
import nsk.share.jdi.*;
29
30
31
/**
32
* This class is used as debugee application for the modifiers001 JDI test.
33
*/
34
35
public class modifiers001a {
36
37
static boolean verbose_mode = false;
38
39
// Classes must be loaded and linked, so all fields must be
40
// initialized
41
Boolean Z0 = Boolean.valueOf(false);
42
Byte B0 = Byte.valueOf((byte)1);
43
Character C0 = Character.valueOf('c');
44
Double D0 = Double.valueOf(1);
45
Float F0 = Float.valueOf(1);
46
Integer I0 = Integer.valueOf(1);
47
Long L0 = Long.valueOf(1);
48
String S0 = new String("s");
49
Object O0 = new Object();
50
51
modifiers001 m001_0=new modifiers001();
52
modifiers001a m001a_0, m001a_1[] = {m001a_0};
53
54
final static class fin_s_cls {}
55
abstract static class abs_s_cls {}
56
static class abs_s_cls_ext extends abs_s_cls {}
57
static interface s_interf {}
58
static class s_interf_impl implements s_interf {}
59
60
// Interfaces and abstract classes must be loaded and linked, so classes
61
// that implement interfaces and extend abstract classes must be
62
// initialized
63
fin_s_cls fin_s_cls_0 = new fin_s_cls();
64
abs_s_cls_ext abs_s_cls_ext_0 = new abs_s_cls_ext();
65
abs_s_cls abs_s_cls_0, abs_s_cls_1[] = {abs_s_cls_0};
66
s_interf_impl s_interf_impl_0 = new s_interf_impl();
67
s_interf s_interf_0, s_interf_1[] = {s_interf_0};
68
69
simple_class m_simpleclass_0 = new simple_class();
70
abstract_class_ext m_absclass_ext_0 = new abstract_class_ext();
71
abstract_class m_absclass_0, m_absclass_1[] = {m_absclass_0};
72
final_class m_finclass_0 = new final_class();
73
interf_impl m_interf_impl_0 = new interf_impl();
74
interf m_interf_0, m_interf_1[] = {m_interf_0};
75
76
private static void print_log_on_verbose(String message) {
77
if ( verbose_mode ) {
78
System.err.println(message);
79
}
80
}
81
82
public static void main (String argv[]) {
83
84
for (int i=0; i<argv.length; i++) {
85
if ( argv[i].equals("-vbs") || argv[i].equals("-verbose") ) {
86
verbose_mode = true;
87
break;
88
}
89
}
90
91
print_log_on_verbose("**> modifiers001a: debugee started!");
92
modifiers001a obj = new modifiers001a();
93
ArgumentHandler argHandler = new ArgumentHandler(argv);
94
IOPipe pipe = argHandler.createDebugeeIOPipe();
95
print_log_on_verbose("**> modifiers001a: waiting for \"quit\" signal...");
96
pipe.println("ready");
97
String instruction = pipe.readln();
98
if (instruction.equals("quit")) {
99
print_log_on_verbose("**> modifiers001a: \"quit\" signal recieved!");
100
print_log_on_verbose("**> modifiers001a: completed succesfully!");
101
System.exit(0/*STATUS_PASSED*/ + 95/*STATUS_TEMP*/);
102
}
103
System.err.println("!!**> modifiers001a: unexpected signal (no \"quit\") - " + instruction);
104
System.err.println("!!**> modifiers001a: FAILED!");
105
System.exit(2/*STATUS_FAILED*/ + 95/*STATUS_TEMP*/);
106
}
107
}
108
109
/** simple class */
110
class simple_class {}
111
112
/** abstract class */
113
abstract class abstract_class {}
114
115
/** Class that extends abstract class */
116
class abstract_class_ext extends abstract_class {}
117
118
/** final class */
119
final class final_class {}
120
121
/** simple interface */
122
interface interf {}
123
124
/** Class that implements interface */
125
class interf_impl implements interf {}
126
127