1 /*
   2  * Copyright (c) 2015, 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 class p2/B {
  25   0xCAFEBABE;
  26   0; // minor version
  27   52; // version
  28   [28] { // Constant Pool
  29     ; // first element is empty
  30     Method #6 #14; // #1     at 0x0A
  31     Field #15 #16; // #2     at 0x0F
  32     String #17; // #3     at 0x14
  33     Method #18 #19; // #4     at 0x17
  34     class #20; // #5     at 0x1C
  35     class #21; // #6     at 0x1F
  36     Utf8 "<init>"; // #7     at 0x22
  37     Utf8 "()V"; // #8     at 0x2B
  38     Utf8 "Code"; // #9     at 0x31
  39     Utf8 "LineNumberTable"; // #10     at 0x38
  40     Utf8 "test"; // #11     at 0x4A
  41     Utf8 "SourceFile"; // #12     at 0x52
  42     Utf8 "B.java"; // #13     at 0x5F
  43     NameAndType #7 #8; // #14     at 0x68
  44     class #22; // #15     at 0x6D
  45     NameAndType #23 #24; // #16     at 0x70
  46     Utf8 "In B's test method"; // #17     at 0x75
  47     class #25; // #18     at 0x8A
  48     NameAndType #26 #27; // #19     at 0x8D
  49     Utf8 "p2/B"; // #20     at 0x92
  50     Utf8 "p1/A"; // #21     at 0x99
  51     Utf8 "java/lang/System"; // #22     at 0xA0
  52     Utf8 "out"; // #23     at 0xB3
  53     Utf8 "Ljava/io/PrintStream;"; // #24     at 0xB9
  54     Utf8 "java/io/PrintStream"; // #25     at 0xD1
  55     Utf8 "println"; // #26     at 0xE7
  56     Utf8 "(Ljava/lang/String;)V"; // #27     at 0xF1
  57   } // Constant Pool
  58 
  59   0x0021; // access
  60   #5;// this_cpx
  61   #6;// super_cpx
  62 
  63   [0] { // Interfaces
  64   } // Interfaces
  65 
  66   [0] { // fields
  67   } // fields
  68 
  69   [2] { // methods
  70     { // Member at 0x0115
  71       0x0001; // access
  72       #7; // name_cpx
  73       #8; // sig_cpx
  74       [1] { // Attributes
  75         Attr(#9, 29) { // Code at 0x011D
  76           1; // max_stack
  77           1; // max_locals
  78           Bytes[5]{
  79             0x2AB70001B1;
  80           };
  81           [0] { // Traps
  82           } // end Traps
  83           [1] { // Attributes
  84             Attr(#10, 6) { // LineNumberTable at 0x0134
  85               [1] { // LineNumberTable
  86                 0  5; //  at 0x0140
  87               }
  88             } // end LineNumberTable
  89           } // Attributes
  90         } // end Code
  91       } // Attributes
  92     } // Member
  93     ;
  94     { // Member at 0x0140
  95       0x0000; // access
  96       #11; // name_cpx
  97       #8; // sig_cpx
  98       [1] { // Attributes
  99         Attr(#9, 33) { // Code at 0x0148
 100           2; // max_stack
 101           1; // max_locals
 102           Bytes[9]{
 103             0xB200021203B60004;
 104             0xB1;
 105           };
 106           [0] { // Traps
 107           } // end Traps
 108           [1] { // Attributes
 109             Attr(#10, 6) { // LineNumberTable at 0x0163
 110               [1] { // LineNumberTable
 111                 0  6; //  at 0x016F
 112               }
 113             } // end LineNumberTable
 114           } // Attributes
 115         } // end Code
 116       } // Attributes
 117     } // Member
 118   } // methods
 119 
 120   [1] { // Attributes
 121     Attr(#12, 2) { // SourceFile at 0x0171
 122       #13;
 123     } // end SourceFile
 124   } // Attributes
 125 } // end class p2/B