Skip to content

Commit

Permalink
Fix bug with incorrectly forwarded varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilsen84 committed Jul 25, 2023
1 parent d66179a commit c1b28b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ abstract class InsnBuilder {
fun ifnonnull(label: LabelNode) = +JumpInsnNode(Opcodes.IFNONNULL, label)

fun invokedynamic(name: String, desc: String, bsm: Handle, vararg bsmArgs: Any) =
+InvokeDynamicInsnNode(name, desc, bsm, bsmArgs)
+InvokeDynamicInsnNode(name, desc, bsm, *bsmArgs)

fun invokevirtual(owner: String, name: String, desc: String) =
+MethodInsnNode(Opcodes.INVOKEVIRTUAL, owner, name, desc, false)
Expand Down

0 comments on commit c1b28b5

Please sign in to comment.