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