|
1 /* |
|
2 * Copyright (c) 2017, 2018, 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 TestReflectionAPI$MemberMissingHost { |
|
27 0xCAFEBABE; |
|
28 0; // minor version |
|
29 55; // version |
|
30 [] { // Constant Pool |
|
31 ; // first element is empty |
|
32 Method #3 #12; // #1 |
|
33 class #13; // #2 |
|
34 class #16; // #3 |
|
35 Utf8 "<init>"; // #4 |
|
36 Utf8 "()V"; // #5 |
|
37 Utf8 "Code"; // #6 |
|
38 Utf8 "LineNumberTable"; // #7 |
|
39 Utf8 "SourceFile"; // #8 |
|
40 Utf8 "TestReflectionAPI.java"; // #9 |
|
41 Utf8 "NestHost"; // #10 |
|
42 class #17; // #11 |
|
43 NameAndType #4 #5; // #12 |
|
44 Utf8 "TestReflectionAPI$MemberMissingHost"; // #13 |
|
45 Utf8 "MemberMissingHost"; // #14 |
|
46 Utf8 "InnerClasses"; // #15 |
|
47 Utf8 "java/lang/Object"; // #16 |
|
48 Utf8 "TestReflectionAPI"; // #17 |
|
49 class #10; // #18 - added |
|
50 } // Constant Pool |
|
51 |
|
52 0x0020; // access |
|
53 #2;// this_cpx |
|
54 #3;// super_cpx |
|
55 |
|
56 [] { // Interfaces |
|
57 } // Interfaces |
|
58 |
|
59 [] { // fields |
|
60 } // fields |
|
61 |
|
62 [] { // methods |
|
63 { // Member |
|
64 0x0000; // access |
|
65 #4; // name_cpx |
|
66 #5; // sig_cpx |
|
67 [] { // Attributes |
|
68 Attr(#6) { // Code |
|
69 1; // max_stack |
|
70 1; // max_locals |
|
71 Bytes[]{ |
|
72 0x2AB70001B1; |
|
73 }; |
|
74 [] { // Traps |
|
75 } // end Traps |
|
76 [] { // Attributes |
|
77 Attr(#7) { // LineNumberTable |
|
78 [] { // LineNumberTable |
|
79 0 60; |
|
80 } |
|
81 } // end LineNumberTable |
|
82 } // Attributes |
|
83 } // end Code |
|
84 } // Attributes |
|
85 } // Member |
|
86 } // methods |
|
87 |
|
88 [] { // Attributes |
|
89 Attr(#8) { // SourceFile |
|
90 #9; |
|
91 } // end SourceFile |
|
92 ; |
|
93 Attr(#10) { // NestHost |
|
94 0x0012; // modified |
|
95 } // end NestHost |
|
96 ; |
|
97 Attr(#15) { // InnerClasses |
|
98 [] { // InnerClasses |
|
99 #2 #11 #14 8; |
|
100 } |
|
101 } // end InnerClasses |
|
102 } // Attributes |
|
103 } // end class TestReflectionAPI$MemberMissingHost |