anonymous wrote : As I know, when we want to remove a method-call expression we
can just give the "{}" source text to the replace method. Am I right?
No. You cannot remove a method-call expression. I cannot come up
with any reasonable algorithm for removing it. For example, suppose
you have a
I'm sorry. I don't understand your answer. I try to say that replace("{}")
doesn't work with javassist-3.0RC1. Which release should I use?
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857992#3857992
Reply to the post :
http://www.jboss.org/index.h
Well, you cannot remove a method call if the method returns
some value. If you remove it, how do you evaluate the caller
side expression?
Suppose the following expression:
int i = k + foo(p);
If you remove the foo() call, how should the expression above
be interpreted?
View the original post