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 
25 package nsk.jdi.Field.type;
26 
27 import com.sun.jdi.*;
28 import nsk.share.*;
29 import nsk.share.jpda.*;
30 import nsk.share.jdi.*;
31 
32 
33 public class type002a {
main(String argv[])34     public static void main (String argv[]) {
35         ArgumentHandler argHandler = new ArgumentHandler(argv);
36         Log log = new Log(System.err, argHandler);
37         IOPipe pipe = argHandler.createDebugeeIOPipe(log);
38         type002aClassToCheck check = new type002aClassToCheck();
39 
40         log.display("DEBUGEE> debugee started.");
41         pipe.println("ready");
42         String instruction = pipe.readln();
43         if (instruction.equals("quit")) {
44             log.display("DEBUGEE> \"quit\" signal recieved.");
45             log.display("DEBUGEE> completed succesfully.");
46             System.exit(95);
47         }
48         log.complain("DEBUGEE FAILURE> unexpected signal "
49                    + "(no \"quit\") - " + instruction);
50         log.complain("DEBUGEE FAILURE> TEST FAILED");
51         System.exit(97);
52     }
53 }
54 
55 class type002aClassToCheck {
56     // No array fields
57     class Class {}
58     Class     X0 = new Class();
59     Boolean   Z0 = Boolean.valueOf(true);
60     Byte      B0 = Byte.valueOf(Byte.MIN_VALUE);
61     Character C0 = Character.valueOf('\u00ff');
62     Double    D0 = Double.valueOf(1);
63     Float     F0 = Float.valueOf(1f);
64     Integer   I0 = Integer.valueOf(1);
65     Long      L0 = Long.valueOf(1l);
66     String    S0 = new String();
67     Object    O0 = new Object();
68 
69     static    Long LS0 = Long.valueOf(1l);
70     private   Long LP0 = Long.valueOf(1l);
71     public    Long LU0 = Long.valueOf(1l);
72     protected Long LR0 = Long.valueOf(1l);
73     transient Long LT0 = Long.valueOf(1l);
74     volatile  Long LV0 = Long.valueOf(1l);
75     final     Long LF0 = Long.valueOf(1l);
76 
77     interface Inter {}
78     static class InterClass implements Inter {}
79     Inter E0 = new InterClass();
80     static    Inter ES0 = new InterClass();
81     private   Inter EP0 = new InterClass();
82     public    Inter EU0 = new InterClass();
83     protected Inter ER0 = new InterClass();
84     transient Inter ET0 = new InterClass();
85     volatile  Inter EV0 = new InterClass();
86     final     Inter EF0 = new InterClass();
87 }
88