I'm doing instrumentation for java code with ASM library.
I want to surround a method body with a try-catch block, which doesn't interrupt the origianl method execution. However, when I use visitTryCatchBlock
, a dominant handler is registered at the beginning of the method's exception table.
Can I register the handler at the end of the method's exception table?
I couldn't really find examples of it online. Thank you.