1 /*
   2  * Copyright (c) 2017, 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 // NestHost attribute refers to current class
  25 
  26 class TestNestmateMembership$TargetSelfHost {
  27   0xCAFEBABE;
  28   0; // minor version
  29   53; // version
  30   [] { // Constant Pool
  31     ; // first element is empty
  32     Method #6 #18; // #1
  33     Field #19 #20; // #2
  34     String #21; // #3
  35     Method #22 #23; // #4
  36     class #24; // #5
  37     class #27; // #6
  38     Utf8 "f"; // #7
  39     Utf8 "I"; // #8
  40     Utf8 "<init>"; // #9
  41     Utf8 "()V"; // #10
  42     Utf8 "Code"; // #11
  43     Utf8 "LineNumberTable"; // #12
  44     Utf8 "m"; // #13
  45     Utf8 "SourceFile"; // #14
  46     Utf8 "TestNestmateMembership.java"; // #15
  47     Utf8 "NestHost"; // #16
  48     class #28; // #17
  49     NameAndType #9 #10; // #18
  50     class #29; // #19
  51     NameAndType #30 #31; // #20
  52     Utf8 "TargetSelfHost.m() - java version"; // #21
  53     class #32; // #22
  54     NameAndType #33 #34; // #23
  55     Utf8 "TestNestmateMembership$TargetSelfHost"; // #24
  56     Utf8 "TargetSelfHost"; // #25
  57     Utf8 "InnerClasses"; // #26
  58     Utf8 "java/lang/Object"; // #27
  59     Utf8 "TestNestmateMembership"; // #28
  60     Utf8 "java/lang/System"; // #29
  61     Utf8 "out"; // #30
  62     Utf8 "Ljava/io/PrintStream;"; // #31
  63     Utf8 "java/io/PrintStream"; // #32
  64     Utf8 "println"; // #33
  65     Utf8 "(Ljava/lang/String;)V"; // #34
  66     //  Added
  67     class #24; // #35
  68   } // Constant Pool
  69 
  70   0x0020; // access
  71   #5;// this_cpx
  72   #6;// super_cpx
  73 
  74   [] { // Interfaces
  75   } // Interfaces
  76 
  77   [] { // fields
  78     { // Member
  79       0x000A; // access
  80       #7; // name_cpx
  81       #8; // sig_cpx
  82       [] { // Attributes
  83       } // Attributes
  84     } // Member
  85   } // fields
  86 
  87   [] { // methods
  88     { // Member
  89       0x0002; // access
  90       #9; // name_cpx
  91       #10; // sig_cpx
  92       [] { // Attributes
  93         Attr(#11) { // Code
  94           1; // max_stack
  95           1; // max_locals
  96           Bytes[]{
  97             0x2AB70001B1;
  98           };
  99           [] { // Traps
 100           } // end Traps
 101           [] { // Attributes
 102             Attr(#12) { // LineNumberTable
 103               [] { // LineNumberTable
 104                 0  371;
 105               }
 106             } // end LineNumberTable
 107           } // Attributes
 108         } // end Code
 109       } // Attributes
 110     } // Member
 111     ;
 112     { // Member
 113       0x000A; // access
 114       #13; // name_cpx
 115       #10; // sig_cpx
 116       [] { // Attributes
 117         Attr(#11) { // Code
 118           2; // max_stack
 119           0; // max_locals
 120           Bytes[]{
 121             0xB200021203B60004;
 122             0xB1;
 123           };
 124           [] { // Traps
 125           } // end Traps
 126           [] { // Attributes
 127             Attr(#12) { // LineNumberTable
 128               [] { // LineNumberTable
 129                 0  374;
 130                 8  375;
 131               }
 132             } // end LineNumberTable
 133           } // Attributes
 134         } // end Code
 135       } // Attributes
 136     } // Member
 137   } // methods
 138 
 139   [] { // Attributes
 140     Attr(#14) { // SourceFile
 141       #15;
 142     } // end SourceFile
 143     ;
 144     Attr(#16) { // NestHost
 145       0x0023; // modified - #35
 146     } // end NestHost
 147     ;
 148     Attr(#26) { // InnerClasses
 149       [] { // InnerClasses
 150         #5 #17 #25 8;
 151       }
 152     } // end InnerClasses
 153   } // Attributes
 154 } // end class TestNestmateMembership$TargetSelfHost