Jump to content
Tuts 4 You

Insert String With Java ASM ?(solved)


Modify

Recommended Posts

Posted (edited)

Hi,
i need help, code insert only int, how to change and insert string.

code:

MethodInsnNode call = new MethodInsnNode(Opcodes.INVOKESTATIC, callOwner.name, CALL_NAME, "(I)Ljava/lang/String;", false); // remove (I), show error
mn.instructions.set(node, call);
mn.instructions.insertBefore(call, getIn(index));

thanks

Edited by Modify
Posted

solve my problem.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...