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