8308753: Class-File API transition to Preview

Reviewed-by: ihse, mchung, vromero
This commit is contained in:
Adam Sotona 2023-12-04 07:07:57 +00:00
parent b9df827adc
commit 2b00ac0d02
681 changed files with 7518 additions and 6502 deletions

View file

@ -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();
}