Jump to content
Tuts 4 You
Sign in to follow this  
Modify

Insert String With Java ASM ?(solved)

Recommended Posts

Modify

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 (see edit history)

Share this post


Link to post
Modify

solve my problem.

Share this post


Link to post

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
Sign in to follow this  
×
×
  • Create New...