< prev index next >
test/java/lang/invoke/lambda/LambdaAsm.java
Print this page
@@ -24,10 +24,12 @@
/*
* @test
* @bug 8027232
* @summary ensures that j.l.i.InvokerByteCodeGenerator and ASM visitMethodInsn
* generate bytecodes with correct constant pool references
+ * @modules java.base/jdk.internal.org.objectweb.asm
+ * jdk.compiler/com.sun.tools.classfile
* @compile -XDignore.symbol.file LambdaAsm.java LUtils.java
* @run main/othervm LambdaAsm
*/
import com.sun.tools.classfile.Attribute;
import com.sun.tools.classfile.ClassFile;
@@ -131,11 +133,11 @@
static void verifyInvokerBytecodeGenerator() throws Exception {
int count = 0;
int mcount = 0;
try (DirectoryStream<Path> ds = newDirectoryStream(new File(".").toPath(),
// filter in lambda proxy classes
- "A$I$$Lambda$?.class")) {
+ "A$I$$Lambda$*.class")) {
for (Path p : ds) {
System.out.println(p.toFile());
ClassFile cf = ClassFile.read(p.toFile());
// Check those methods implementing Supplier.get
mcount += checkMethod(cf, "get");
< prev index next >