Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdb/fields/fields001/fields001a.java
40955 views
/*1* Copyright (c) 2002, 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*/2223package nsk.jdb.fields.fields001;2425import nsk.share.*;26import nsk.share.jpda.*;27import nsk.share.jdb.*;2829import java.io.*;3031/* This is debuggee aplication */32public class fields001a {3334/* TEST DEPENDANT VARIABLES AND CONSTANTS */35static final String PACKAGE_NAME = "nsk.jdb.fields.fields001";3637public static void main(String args[]) {38fields001a _fields001a = new fields001a();39System.exit(fields001.JCK_STATUS_BASE + _fields001a.runIt(args, System.out));40}414243static void lastBreak () {}4445public int runIt(String args[], PrintStream out) {46JdbArgumentHandler argumentHandler = new JdbArgumentHandler(args);47Log log = new Log(out, argumentHandler);4849lastBreak();5051log.display("Debuggee PASSED");52return fields001.PASSED;53}5455static int i_st;56private int i_pv;57protected int i_pt;58public int i_pb;59final int i_fn = 0;;60transient int i_tr;61volatile int i_vl;62int [] i_a;63int [][] i_aa;64int [][][] i_aaa;6566static Object o_st;67private Object o_pv;68protected Object o_pt;69public Object o_pb;70final Object o_fn = new Object();71transient Object o_tr;72volatile Object o_vl;73Object [] o_a;74Object [][] o_aa;75Object [][][] o_aaa;7677class Inner {78private int ii_pv;79protected int ii_pt;80public int ii_pb;81final int ii_fn = 0;;82transient int ii_tr;83volatile int ii_vl;84int [] ii_a;85int [][] ii_aa;86int [][][] ii_aaa;8788private Object oi_pv;89protected Object oi_pt;90public Object oi_pb;91final Object oi_fn = new Object();92transient Object oi_tr;93volatile Object oi_vl;94Object [] oi_a;95Object [][] oi_aa;96Object [][][] oi_aaa;97}9899class Extender extends Inner {};100101Inner inner;102Extender extender;103104public fields001a() {105inner = new Inner();106extender = new Extender();107}108}109110111