25 import java.io.IOException;
26 import java.io.RandomAccessFile;
27 import java.lang.reflect.Field;
28 import java.lang.reflect.Method;
29 import static java.lang.reflect.Modifier.*;
30 import java.net.URL;
31 import java.util.Enumeration;
32
33 import jdk.experimental.value.ValueType;
34
35 import jdk.internal.org.objectweb.asm.*;
36 import static jdk.internal.org.objectweb.asm.Opcodes.*;
37
38 import static jdk.test.lib.Asserts.*;
39
40 /*
41 * @test DeriveValueTypeCreation
42 * @summary Derive Value Type creation test
43 * @library /testlibrary /
44 * @build runtime.valhalla.valuetypes.ValueCapableClass
45 * @run main/othervm -Xint -noverify runtime.valhalla.valuetypes.DeriveValueTypeCreation
46 */
47 public class DeriveValueTypeCreation {
48
49 public static final String VCC_CLASSNAME = "runtime.valhalla.valuetypes.ValueCapableClass";
50
51 static final boolean MVT_1_0 = true; // "Some restrictions apply"
52
53 public static void main(String[] args) {
54 DeriveValueTypeCreation test = new DeriveValueTypeCreation();
55 test.run();
56 }
57
58 public void run() {
59 loadAndRunTest();
60 notValueCapableClasses();
61 }
62
63 void loadAndRunTest() {
64 Class<?> clazz = null;
65 try {
|
25 import java.io.IOException;
26 import java.io.RandomAccessFile;
27 import java.lang.reflect.Field;
28 import java.lang.reflect.Method;
29 import static java.lang.reflect.Modifier.*;
30 import java.net.URL;
31 import java.util.Enumeration;
32
33 import jdk.experimental.value.ValueType;
34
35 import jdk.internal.org.objectweb.asm.*;
36 import static jdk.internal.org.objectweb.asm.Opcodes.*;
37
38 import static jdk.test.lib.Asserts.*;
39
40 /*
41 * @test DeriveValueTypeCreation
42 * @summary Derive Value Type creation test
43 * @library /testlibrary /
44 * @build runtime.valhalla.valuetypes.ValueCapableClass
45 * @run main/othervm -noverify runtime.valhalla.valuetypes.DeriveValueTypeCreation
46 */
47 public class DeriveValueTypeCreation {
48
49 public static final String VCC_CLASSNAME = "runtime.valhalla.valuetypes.ValueCapableClass";
50
51 static final boolean MVT_1_0 = true; // "Some restrictions apply"
52
53 public static void main(String[] args) {
54 DeriveValueTypeCreation test = new DeriveValueTypeCreation();
55 test.run();
56 }
57
58 public void run() {
59 loadAndRunTest();
60 notValueCapableClasses();
61 }
62
63 void loadAndRunTest() {
64 Class<?> clazz = null;
65 try {
|