Jump to content
Tuts 4 You

Insert String With Java ASM ?(solved)


Recommended Posts

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


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));


Edited by Modify
Link to comment

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...