1

I would like to know if anyone has had any luck modifying a Java methods bytecode at a run-time with JVMTI. JVMTI has a getter for a methods bytecode, but from what I understand it does not have any support for replacing the buffer. Any information would be awesome, thanks.

1 Answers1

1

You need to register a class file load hook and retransform the classes you want to change.

Rafael Winterhalter
  • 42,759
  • 13
  • 108
  • 192