--- /dev/null 2016-12-30 14:52:30.584485998 -0500 +++ new/test/hotspot/jtreg/runtime/Nestmates/membership/CallerNotInstanceHost.jcod 2017-10-26 03:07:37.069547241 -0400 @@ -0,0 +1,216 @@ +/* + * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +// NestHost attribute refers to non-instance class + +class TestNestmateMembership$CallerNotInstanceHost { + 0xCAFEBABE; + 0; // minor version + 53; // version + [] { // Constant Pool + ; // first element is empty + Method #8 #22; // #1 + Field #23 #24; // #2 + String #25; // #3 + Method #26 #27; // #4 + Method #28 #29; // #5 + Method #30 #29; // #6 + class #31; // #7 + class #34; // #8 + Utf8 "oa"; // #9 + Utf8 "[Ljava/lang/Object;"; // #10 + Utf8 ""; // #11 + Utf8 "()V"; // #12 + Utf8 "Code"; // #13 + Utf8 "LineNumberTable"; // #14 + Utf8 "m"; // #15 + Utf8 "invokeTarget"; // #16 + Utf8 "invokeTargetNotInstanceHost"; // #17 + Utf8 "SourceFile"; // #18 + Utf8 "TestNestmateMembership.java"; // #19 + Utf8 "NestHost"; // #20 + class #35; // #21 + NameAndType #11 #12; // #22 + class #36; // #23 + NameAndType #37 #38; // #24 + Utf8 "CallerNotInstanceHost.m() - java version"; // #25 + class #39; // #26 + NameAndType #40 #41; // #27 + class #42; // #28 + NameAndType #15 #12; // #29 + class #44; // #30 + Utf8 "TestNestmateMembership$CallerNotInstanceHost"; // #31 + Utf8 "CallerNotInstanceHost"; // #32 + Utf8 "InnerClasses"; // #33 + Utf8 "java/lang/Object"; // #34 + Utf8 "TestNestmateMembership"; // #35 + Utf8 "java/lang/System"; // #36 + Utf8 "out"; // #37 + Utf8 "Ljava/io/PrintStream;"; // #38 + Utf8 "java/io/PrintStream"; // #39 + Utf8 "println"; // #40 + Utf8 "(Ljava/lang/String;)V"; // #41 + Utf8 "TestNestmateMembership$Target"; // #42 + Utf8 "Target"; // #43 + Utf8 "TestNestmateMembership$TargetNotInstanceHost"; // #44 + Utf8 "TargetNotInstanceHost"; // #45 + class #10; // #46 - added + } // Constant Pool + + 0x0020; // access + #7;// this_cpx + #8;// super_cpx + + [] { // Interfaces + } // Interfaces + + [] { // fields + { // Member + 0x0000; // access + #9; // name_cpx + #10; // sig_cpx + [] { // Attributes + } // Attributes + } // Member + } // fields + + [] { // methods + { // Member + 0x0000; // access + #11; // name_cpx + #12; // sig_cpx + [] { // Attributes + Attr(#13) { // Code + 1; // max_stack + 1; // max_locals + Bytes[]{ + 0x2AB70001B1; + }; + [] { // Traps + } // end Traps + [] { // Attributes + Attr(#14) { // LineNumberTable + [] { // LineNumberTable + 0 104; + } + } // end LineNumberTable + } // Attributes + } // end Code + } // Attributes + } // Member + ; + { // Member + 0x000A; // access + #15; // name_cpx + #12; // sig_cpx + [] { // Attributes + Attr(#13) { // Code + 2; // max_stack + 0; // max_locals + Bytes[]{ + 0xB200021203B60004; + 0xB1; + }; + [] { // Traps + } // end Traps + [] { // Attributes + Attr(#14) { // LineNumberTable + [] { // LineNumberTable + 0 107; + 8 108; + } + } // end LineNumberTable + } // Attributes + } // end Code + } // Attributes + } // Member + ; + { // Member + 0x0009; // access + #16; // name_cpx + #12; // sig_cpx + [] { // Attributes + Attr(#13) { // Code + 0; // max_stack + 0; // max_locals + Bytes[]{ + 0xB80005B1; + }; + [] { // Traps + } // end Traps + [] { // Attributes + Attr(#14) { // LineNumberTable + [] { // LineNumberTable + 0 110; + 3 111; + } + } // end LineNumberTable + } // Attributes + } // end Code + } // Attributes + } // Member + ; + { // Member + 0x0009; // access + #17; // name_cpx + #12; // sig_cpx + [] { // Attributes + Attr(#13) { // Code + 0; // max_stack + 0; // max_locals + Bytes[]{ + 0xB80006B1; + }; + [] { // Traps + } // end Traps + [] { // Attributes + Attr(#14) { // LineNumberTable + [] { // LineNumberTable + 0 113; + 3 114; + } + } // end LineNumberTable + } // Attributes + } // end Code + } // Attributes + } // Member + } // methods + + [] { // Attributes + Attr(#18) { // SourceFile + #19; + } // end SourceFile + ; + Attr(#20) { // NestHost + 0x002E; // modified - #46 + } // end NestHost + ; + Attr(#33) { // InnerClasses + [] { // InnerClasses + #7 #21 #32 8; + #28 #21 #43 8; + #30 #21 #45 8; + } + } // end InnerClasses + } // Attributes +} // end class TestNestmateMembership$CallerNotInstanceHost