1 /*
  2  * Copyright (c) 2003, 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 super public class fieldmod01a {
 25 
 26     static Field staticBoolean:Z;
 27     static Field staticByte:B;
 28     static Field staticShort:S;
 29     static Field staticInt:I;
 30     static Field staticLong:J;
 31     static Field staticFloat:F;
 32     static Field staticDouble:D;
 33     static Field staticChar:C;
 34     static Field staticObject:"Ljava/lang/Object;";
 35     static Field staticArrInt:"[I";
 36     Field instanceBoolean:Z;
 37     Field instanceByte:B;
 38     Field instanceShort:S;
 39     Field instanceInt:I;
 40     Field instanceLong:J;
 41     Field instanceFloat:F;
 42     Field instanceDouble:D;
 43     Field instanceChar:C;
 44     Field instanceObject:"Ljava/lang/Object;";
 45     Field instanceArrInt:"[I";
 46 
 47     public Method "<init>":"()V" stack 1 locals 1 {
 48         aload_0;
 49         invokespecial Method java/lang/Object."<init>":"()V";
 50         return;
 51     }
 52 
 53     public Method run:"()V" stack 5 locals 1 {
 54         iconst_1;
 55         putstatic   Field staticBoolean:"Z";    // bci=1
 56         iconst_1;
 57         putstatic   Field staticByte:"B";       // bci=5
 58         iconst_2;
 59         putstatic   Field staticShort:"S";      // bci=9
 60         iconst_3;
 61         putstatic   Field staticInt:"I";        // bci=13
 62         ldc2_w      long 4l;
 63         putstatic   Field staticLong:"J";       // bci=19
 64         ldc         float 0.5f;
 65         putstatic   Field staticFloat:"F";      // bci=24
 66         ldc2_w      double 0.6d;
 67         putstatic   Field staticDouble:"D";     // bci=30
 68         bipush      97;
 69         putstatic   Field staticChar:"C";       // bci=35
 70         getstatic   Field fieldmod01.obj1:"Ljava/lang/Object;";
 71         putstatic   Field staticObject:"Ljava/lang/Object;"; // bci=41
 72         getstatic   Field fieldmod01.arr1:"[I";
 73         putstatic   Field staticArrInt:"[I";    // bci=47
 74         aload_0;
 75         iconst_0;
 76         putfield    Field instanceBoolean:"Z";  // bci=52
 77         aload_0;
 78         bipush      10;
 79         putfield    Field instanceByte:"B";     // bci=58
 80         aload_0;
 81         bipush      20;
 82         putfield    Field instanceShort:"S";    // bci=64
 83         aload_0;
 84         bipush      30;
 85         putfield    Field instanceInt:"I";      // bci=70
 86         aload_0;
 87         ldc2_w      long 40l;
 88         putfield    Field instanceLong:"J";     // bci=77
 89         aload_0;
 90         ldc         float 0.05f;
 91         putfield    Field instanceFloat:"F";    // bci=83
 92         aload_0;
 93         ldc2_w      double 0.06d;
 94         putfield    Field instanceDouble:"D";   // bci=90
 95         aload_0;
 96         bipush      122;
 97         putfield    Field instanceChar:"C";     // bci=96
 98         aload_0;
 99         getstatic   Field fieldmod01.obj2:"Ljava/lang/Object;";
100         putfield    Field instanceObject:"Ljava/lang/Object;"; // bci=103
101         aload_0;
102         getstatic   Field fieldmod01.arr2:"[I";
103         putfield    Field instanceArrInt:"[I";  // bci=110
104         return;
105     }
106 }