mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8308753: Class-File API transition to Preview
Reviewed-by: ihse, mchung, vromero
This commit is contained in:
parent
b9df827adc
commit
2b00ac0d02
681 changed files with 7518 additions and 6502 deletions
|
@ -26,18 +26,14 @@
|
|||
* @bug 8011738
|
||||
* @author sogoel
|
||||
* @summary Code translation test for Lambda expressions, method references
|
||||
* @modules java.base/jdk.internal.classfile
|
||||
* java.base/jdk.internal.classfile.attribute
|
||||
* java.base/jdk.internal.classfile.constantpool
|
||||
* java.base/jdk.internal.classfile.instruction
|
||||
* java.base/jdk.internal.classfile.components
|
||||
* java.base/jdk.internal.classfile.impl
|
||||
* @enablePreview
|
||||
* @modules java.base/jdk.internal.classfile.impl
|
||||
* @run main ByteCodeTest
|
||||
*/
|
||||
|
||||
import jdk.internal.classfile.*;
|
||||
import jdk.internal.classfile.attribute.BootstrapMethodsAttribute;
|
||||
import jdk.internal.classfile.constantpool.*;
|
||||
import java.lang.classfile.*;
|
||||
import java.lang.classfile.attribute.BootstrapMethodsAttribute;
|
||||
import java.lang.classfile.constantpool.*;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
|
@ -78,7 +74,7 @@ public class ByteCodeTest {
|
|||
private static boolean verifyClassFileAttributes(File classFile, TestCases tc) {
|
||||
ClassModel c = null;
|
||||
try {
|
||||
c = Classfile.of().parse(classFile.toPath());
|
||||
c = ClassFile.of().parse(classFile.toPath());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue