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 // This test was generated from this source and then modified:
25 // record recordNames(int x, String y) {}
26
27 // This test is a Record marked as abstract. It should result in a
28 // ClassFormatError exception.
29 class abstractRecord {
30 0xCAFEBABE;
31 65535; // minor version
32 58; // version
33 [69] { // Constant Pool
34 ; // first element is empty
35 Method #2 #3; // #1 at 0x0A
36 class #4; // #2 at 0x0F
37 NameAndType #5 #6; // #3 at 0x12
38 Utf8 "java/lang/Record"; // #4 at 0x17
39 Utf8 "<init>"; // #5 at 0x2A
40 Utf8 "()V"; // #6 at 0x33
41 Field #8 #9; // #7 at 0x39
42 class #10; // #8 at 0x3E
43 NameAndType #11 #12; // #9 at 0x41
44 Utf8 "abstractRecord"; // #10 at 0x46
45 Utf8 "x"; // #11 at 0x56
46 Utf8 "I"; // #12 at 0x5A
47 Field #8 #14; // #13 at 0x5E
48 NameAndType #15 #16; // #14 at 0x63
49 Utf8 "y"; // #15 at 0x68
50 Utf8 "Ljava/lang/String;"; // #16 at 0x6C
51 InvokeDynamic 0s #18; // #17 at 0x81
52 NameAndType #19 #20; // #18 at 0x86
|
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 // This test was generated from this source and then modified:
25 // record recordNames(int x, String y) {}
26
27 // This test is a Record marked as abstract. It should result in a
28 // ClassFormatError exception.
29 class abstractRecord {
30 0xCAFEBABE;
31 65535; // minor version
32 59; // version
33 [69] { // Constant Pool
34 ; // first element is empty
35 Method #2 #3; // #1 at 0x0A
36 class #4; // #2 at 0x0F
37 NameAndType #5 #6; // #3 at 0x12
38 Utf8 "java/lang/Record"; // #4 at 0x17
39 Utf8 "<init>"; // #5 at 0x2A
40 Utf8 "()V"; // #6 at 0x33
41 Field #8 #9; // #7 at 0x39
42 class #10; // #8 at 0x3E
43 NameAndType #11 #12; // #9 at 0x41
44 Utf8 "abstractRecord"; // #10 at 0x46
45 Utf8 "x"; // #11 at 0x56
46 Utf8 "I"; // #12 at 0x5A
47 Field #8 #14; // #13 at 0x5E
48 NameAndType #15 #16; // #14 at 0x63
49 Utf8 "y"; // #15 at 0x68
50 Utf8 "Ljava/lang/String;"; // #16 at 0x6C
51 InvokeDynamic 0s #18; // #17 at 0x81
52 NameAndType #19 #20; // #18 at 0x86
|