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

@ -21,8 +21,8 @@
* questions.
*/
import jdk.internal.classfile.*;
import jdk.internal.classfile.attribute.*;
import java.lang.classfile.*;
import java.lang.classfile.attribute.*;
import java.io.IOException;
import java.lang.annotation.Repeatable;
@ -60,7 +60,7 @@ public abstract class LocalVariableTestBase extends TestBase {
public LocalVariableTestBase(Class<?> clazz) {
this.clazz = clazz;
try {
this.classFile = Classfile.of().parse(getClassFile(clazz).toPath());
this.classFile = ClassFile.of().parse(getClassFile(clazz).toPath());
} catch (IOException e) {
throw new IllegalArgumentException("Can't read classfile for specified class", e);
}