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