JBoss Community

Insert code at the end of catch block

created by Oleg Barmin in Javassist - View the full discussion

Hi,

 

I need to insert code at the end of catch block at runtime.But I have two problems with this.

 

1) Start of cathc block is stored in the handlerPc of the exception table. How to get the end of catch block?

2) How to add a code as the last instructions at the catch block (not before the last line)?

 

Best regards,

Oleg Barmin.

Reply to this message by going to Community

Start a new discussion in Javassist at Community