|
1 /* |
|
2 * Copyright (c) 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 // We have set the class file version to 49 to allow relaxed access checks |
|
25 |
|
26 class TestDeletedMethod_Super { |
|
27 0xCAFEBABE; |
|
28 0; // minor version |
|
29 49; // version |
|
30 [] { // Constant Pool |
|
31 ; // first element is empty |
|
32 Method #6 #19; // #1 |
|
33 Field #20 #21; // #2 |
|
34 String #22; // #3 |
|
35 Method #23 #24; // #4 |
|
36 class #25; // #5 |
|
37 class #26; // #6 |
|
38 Utf8 "ID"; // #7 |
|
39 Utf8 "I"; // #8 |
|
40 Utf8 "ConstantValue"; // #9 |
|
41 int 0x00000002; // #10 |
|
42 Utf8 "<init>"; // #11 |
|
43 Utf8 "()V"; // #12 |
|
44 Utf8 "Code"; // #13 |
|
45 Utf8 "LineNumberTable"; // #14 |
|
46 Utf8 "m"; // #15 |
|
47 Utf8 "()I"; // #16 |
|
48 Utf8 "SourceFile"; // #17 |
|
49 Utf8 "TestDeletedMethod.java"; // #18 |
|
50 NameAndType #11 #12; // #19 |
|
51 class #27; // #20 |
|
52 NameAndType #28 #29; // #21 |
|
53 Utf8 "Super.m"; // #22 |
|
54 class #30; // #23 |
|
55 NameAndType #31 #32; // #24 |
|
56 Utf8 "TestDeletedMethod_Super"; // #25 |
|
57 Utf8 "java/lang/Object"; // #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 { // Member |
|
75 0x0019; // access |
|
76 #7; // name_cpx |
|
77 #8; // sig_cpx |
|
78 [] { // Attributes |
|
79 Attr(#9) { // ConstantValue |
|
80 #10; |
|
81 } // end ConstantValue |
|
82 } // Attributes |
|
83 } // Member |
|
84 } // fields |
|
85 |
|
86 [] { // methods |
|
87 { // Member |
|
88 0x0000; // access |
|
89 #11; // name_cpx |
|
90 #12; // sig_cpx |
|
91 [] { // Attributes |
|
92 Attr(#13) { // Code |
|
93 1; // max_stack |
|
94 1; // max_locals |
|
95 Bytes[]{ |
|
96 0x2AB70001B1; |
|
97 }; |
|
98 [] { // Traps |
|
99 } // end Traps |
|
100 [] { // Attributes |
|
101 Attr(#14) { // LineNumberTable |
|
102 [] { // LineNumberTable |
|
103 0 35; |
|
104 } |
|
105 } // end LineNumberTable |
|
106 } // Attributes |
|
107 } // end Code |
|
108 } // Attributes |
|
109 } // Member |
|
110 ; |
|
111 { // Member |
|
112 0x000A; // access |
|
113 #15; // name_cpx |
|
114 #16; // sig_cpx |
|
115 [] { // Attributes |
|
116 Attr(#13) { // Code |
|
117 2; // max_stack |
|
118 0; // max_locals |
|
119 Bytes[]{ |
|
120 0xB200021203B60004; |
|
121 0x05AC; |
|
122 }; |
|
123 [] { // Traps |
|
124 } // end Traps |
|
125 [] { // Attributes |
|
126 Attr(#14) { // LineNumberTable |
|
127 [] { // LineNumberTable |
|
128 0 38; |
|
129 8 39; |
|
130 } |
|
131 } // end LineNumberTable |
|
132 } // Attributes |
|
133 } // end Code |
|
134 } // Attributes |
|
135 } // Member |
|
136 } // methods |
|
137 |
|
138 [] { // Attributes |
|
139 Attr(#17) { // SourceFile |
|
140 #18; |
|
141 } // end SourceFile |
|
142 } // Attributes |
|
143 } // end class TestDeletedMethod_Super |