mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue