Commit f5270ecd authored by Remi Forax's avatar Remi Forax

CheckMethodAdapter doesn't allow <init> as name when doing a LDC of a

method handle
parent 24ce41ec
......@@ -489,6 +489,11 @@ public class CheckMethodAdapterTest extends AsmTest implements Opcodes {
assertThrows(
RuntimeException.class,
() -> checkMethodAdapter.visitLdcInsn(new Handle(-1, "o", "m", "()V", false)));
checkMethodAdapter.visitLdcInsn(new Handle(Opcodes.H_NEWINVOKESPECIAL, "o", "<init>", "()V", false));
assertThrows(
RuntimeException.class,
() -> checkMethodAdapter.visitLdcInsn(new Handle(Opcodes.H_INVOKEVIRTUAL, "o", "<init>", "()V", false)));
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment