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