This content has been marked as final.
Show 3 replies
-
1. 3855800
chiba Dec 3, 2004 5:18 AM (in response to rezahay)Is there a CVS tag to use to get the revision of the source corresponding to release 1.0.0? I was going to fix a bug I found and didn't want to deal with any new bugs that might be in development.
-
2. Re: javassist-3.0RC1: replace("{}") doesn't work.
rezahay Dec 9, 2004 4:05 AM (in response to 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. -
3. Re: javassist-3.0RC1: replace(
chiba Dec 9, 2004 10:11 AM (in response to rezahay)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 *statement* like this:obj.bar(obj.foo(), 1);
obj is some object. bar is a method taking two parameters.
foo is a method returning an int value. If you remove this method
call expression "obj.foo()" in the statement above,obj.bar(<removed>, 1);
How do I fill the removed parameter in the above statement?
Since I don't know an algorithm for filling the removed term,
Javassist does not allow you to remove a method call expression.
If you know it, can you tell me? I would like to implement that
algorithm...