Commit f205b607 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Merge branch '317802-dont-mutate-bsm-args-in-method-remapper' into 'master'

Don't mutate bsmArgs in MethodRemapper.

Closes #317802

See merge request asm/asm!94
parents 63924390 a368374e
......@@ -158,14 +158,15 @@ public class MethodRemapper extends MethodVisitor {
public void visitInvokeDynamicInsn(String name, String desc, Handle bsm, Object... bsmArgs) {
Object[] remappedBsmArgs = new Object[bsmArgs.length];
for (int i = 0; i < bsmArgs.length; i++) {
bsmArgs[i] = remapper.mapValue(bsmArgs[i]);
remappedBsmArgs[i] = remapper.mapValue(bsmArgs[i]);
remapper.mapInvokeDynamicMethodName(name, desc),
(Handle) remapper.mapValue(bsm),
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