[jboss-dev-forums] [Javassist development Forum] - Re: insertBefore and replacing support for throw.
eliotmoss
do-not-reply at jboss.com
Wed Jan 10 23:14:32 EST 2007
I think what you'd need is an ExprEditor for athrow
bytecodes. If done at that level, the exception object
will already have been constructed, but not yet thrown.
Presumably you could modify or replace it, or do
something else. But you'd need either to return from
the method or throw something that it either handles
locally or that is legal to throw from the method.
Easiest and safest might be to restrict it either to return
(a type-safe value) or throw an object of the original
exception class.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000254#4000254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000254
More information about the jboss-dev-forums
mailing list