Javassist does not provide direct support for doing that. You must manipulate Java bytecode as you do with BCEL. Or, you can use insertAfter() so that the result of a+b will be discarded and return _add(a, b).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861783#3861783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861783 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
