Modifying Java Bytecode With ASM
In a previous blog post, we covered how to use the ASM library to instrument Java code. In conjunction with instrumentation, ASM can also be used to modify classes and change how they behave entirely, often in dramatic ways.