[JBoss-user] [Javassist user questions] - Re: javassist-3.0RC1: replace(

2004-12-09 Thread chiba
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

[JBoss-user] [Javassist user questions] - Re: javassist-3.0RC1: replace("{}") doesn't work.

2004-12-09 Thread rezahay
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

[JBoss-user] [Javassist user questions] - Re: javassist-3.0RC1: replace(

2004-12-06 Thread chiba
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