mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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,13 +26,9 @@
|
|||
* @bug 8268748
|
||||
* @summary Javac generates error opcodes when using nest pattern variables
|
||||
* @library /tools/lib
|
||||
* @enablePreview
|
||||
* @modules jdk.compiler/com.sun.tools.javac.api
|
||||
* jdk.compiler/com.sun.tools.javac.main
|
||||
* 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
|
||||
* @build toolbox.ToolBox toolbox.JavacTask
|
||||
* @run main NestedPatternVariablesBytecode
|
||||
|
@ -43,8 +39,8 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.stream.StreamSupport;
|
||||
|
||||
import jdk.internal.classfile.*;
|
||||
import jdk.internal.classfile.attribute.CodeAttribute;
|
||||
import java.lang.classfile.*;
|
||||
import java.lang.classfile.attribute.CodeAttribute;
|
||||
|
||||
import toolbox.JavacTask;
|
||||
import toolbox.TestRunner;
|
||||
|
@ -84,7 +80,7 @@ public class NestedPatternVariablesBytecode extends TestRunner {
|
|||
.outdir(curPath)
|
||||
.run();
|
||||
|
||||
cf = Classfile.of().parse(curPath.resolve("NestedPatterVariablesTest.class"));
|
||||
cf = ClassFile.of().parse(curPath.resolve("NestedPatterVariablesTest.class"));
|
||||
MethodModel testMethod = cf.methods().stream()
|
||||
.filter(this::isTestMethod)
|
||||
.findAny()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue