Add missing visitInvokeDynamicInsn to ChargeEnergyInjectionVisitor
revision:
@@ -4,6 +4,7 @@ import java.util.List;
import i.Helper;
import i.RuntimeAssertionError;
+import org.objectweb.asm.Handle;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
@@ -127,6 +128,12 @@ public class ChargeEnergyInjectionVisitor extends MethodVisitor {
super.visitMaxs(maxStack, maxLocals);
}
+ @Override
+ public void visitInvokeDynamicInsn(String name, String descriptor, Handle bootstrapMethodHandle, Object... bootstrapMethodArguments) {
+ checkInject();
+ super.visitInvokeDynamicInsn(name, descriptor, bootstrapMethodHandle, bootstrapMethodArguments);
+ }
+
/**
* Common state machine advancing call. Called at every instruction to see if we need to inject and/or advance
* the state machine.
