60 System.out.println(
61 "\nNote that an entry such as 'B.m/C.m' in the failure chart means that" +
62 " the test case failed because method B.m was invoked but the test " +
63 "expected method C.m to be invoked. Similarly, a result such as 'AME/C.m'" +
64 " means that an AbstractMethodError exception was thrown but the test" +
65 " case expected method C.m to be invoked.");
66 System.out.println(
67 "\nAlso note that passing --dump to invoke*.Generator will" +
68 " dump the generated classes (for debugging purposes).\n");
69
70 throw e;
71 }
72 }
73
74 public static void main(String args[]) throws Throwable {
75 // Get current major class file version and test with it.
76 byte klassbuf[] = InMemoryJavaCompiler.compile("blah", "public class blah { }");
77 int major_version = klassbuf[6] << 8 | klassbuf[7];
78 runTest("invokespecial.Generator", String.valueOf(major_version));
79 runTest("invokeinterface.Generator", String.valueOf(major_version));
80
81 // Uncomment this test once JDK-8226588 is fixed
82 // runTest("invokevirtual.Generator", String.valueOf(major_version));
83 }
84 }
|
60 System.out.println(
61 "\nNote that an entry such as 'B.m/C.m' in the failure chart means that" +
62 " the test case failed because method B.m was invoked but the test " +
63 "expected method C.m to be invoked. Similarly, a result such as 'AME/C.m'" +
64 " means that an AbstractMethodError exception was thrown but the test" +
65 " case expected method C.m to be invoked.");
66 System.out.println(
67 "\nAlso note that passing --dump to invoke*.Generator will" +
68 " dump the generated classes (for debugging purposes).\n");
69
70 throw e;
71 }
72 }
73
74 public static void main(String args[]) throws Throwable {
75 // Get current major class file version and test with it.
76 byte klassbuf[] = InMemoryJavaCompiler.compile("blah", "public class blah { }");
77 int major_version = klassbuf[6] << 8 | klassbuf[7];
78 runTest("invokespecial.Generator", String.valueOf(major_version));
79 runTest("invokeinterface.Generator", String.valueOf(major_version));
80 runTest("invokevirtual.Generator", String.valueOf(major_version));
81 }
82 }
|