1 /*
 2  * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
 3  * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 4  */
 5 
 6 // When -XX:+PreloadSharedClasses is enabled, this class will be
 7 // archived in the unlinked state. When we try to use this class
 8 // at runtime, a VerifyError should be thrown.
 9 
10 super public class GoodOldClass
11 	version 49:0
12 {
13 
14 
15 public Method "<init>":"()V"
16 	stack 1 locals 1
17 {
18 		aload_0;
19 		invokespecial	Method java/lang/Object."<init>":"()V";
20 		return;
21 }
22 
23 
24 public static Method doit:"()LVehicle;"
25 	stack 2 locals 1
26 {
27                 new	class Car;
28 		dup;
29 		invokespecial	Method Car."<init>":"()V";
30 		astore_0;
31 		aload_0;
32 		areturn;   // tries to return a Car as a Vehicle
33 }
34 
35 }