[jboss-user] [Javassist] - Insert code at the end of catch block

Oleg Barmin do-not-reply at jboss.com
Mon Oct 8 16:18:56 EDT 2012


Oleg Barmin [https://community.jboss.org/people/lezhik] created the discussion

"Insert code at the end of catch block"

To view the discussion, visit: https://community.jboss.org/message/763769#763769

--------------------------------------------------------------
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
[https://community.jboss.org/message/763769#763769]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121008/75d22e10/attachment.html 


More information about the jboss-user mailing list