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 non-instance class
  25 
  26 class TestNestmateMembership$TargetNotInstanceHost {
  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 "oa"; // #7
  39     Utf8 "[Ljava/lang/Object;"; // #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 "TargetNotInstanceHost.m() - java version"; // #21
  53     class #32; // #22
  54     NameAndType #33 #34; // #23
  55     Utf8 "TestNestmateMembership$TargetNotInstanceHost"; // #24
  56     Utf8 "TargetNotInstanceHost"; // #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     class #8; // #35 added
  67   } // Constant Pool
  68 
  69   0x0020; // access
  70   #5;// this_cpx
  71   #6;// super_cpx
  72 
  73   [] { // Interfaces
  74   } // Interfaces
  75 
  76   [] { // fields
  77     { // Member
  78       0x0000; // access
  79       #7; // name_cpx
  80       #8; // sig_cpx
  81       [] { // Attributes
  82       } // Attributes
  83     } // Member
  84   } // fields
  85 
  86   [] { // methods
  87     { // Member
  88       0x0000; // access
  89       #9; // name_cpx
  90       #10; // sig_cpx
  91       [] { // Attributes
  92         Attr(#11) { // Code
  93           1; // max_stack
  94           1; // max_locals
  95           Bytes[]{
  96             0x2AB70001B1;
  97           };
  98           [] { // Traps
  99           } // end Traps
 100           [] { // Attributes
 101             Attr(#12) { // LineNumberTable
 102               [] { // LineNumberTable
 103                 0  148;
 104               }
 105             } // end LineNumberTable
 106           } // Attributes
 107         } // end Code
 108       } // Attributes
 109     } // Member
 110     ;
 111     { // Member
 112       0x000A; // access
 113       #13; // name_cpx
 114       #10; // sig_cpx
 115       [] { // Attributes
 116         Attr(#11) { // Code
 117           2; // max_stack
 118           0; // max_locals
 119           Bytes[]{
 120             0xB200021203B60004;
 121             0xB1;
 122           };
 123           [] { // Traps
 124           } // end Traps
 125           [] { // Attributes
 126             Attr(#12) { // LineNumberTable
 127               [] { // LineNumberTable
 128                 0  151;
 129                 8  152;
 130               }
 131             } // end LineNumberTable
 132           } // Attributes
 133         } // end Code
 134       } // Attributes
 135     } // Member
 136   } // methods
 137 
 138   [] { // Attributes
 139     Attr(#14) { // SourceFile
 140       #15;
 141     } // end SourceFile
 142     ;
 143     Attr(#16) { // NestHost
 144       0x0023; // modified - #35
 145     } // end NestHost
 146     ;
 147     Attr(#26) { // InnerClasses
 148       [] { // InnerClasses
 149         #5 #17 #25 8;
 150       }
 151     } // end InnerClasses
 152   } // Attributes
 153 } // end class TestNestmateMembership$TargetNotInstanceHost