This content has been marked as final.
Show 3 replies
-
1. Re: Constructor -> Method
chiba Sep 14, 2005 11:57 AM (in response to marcinbr)Hi,
You can remove super()/this() call from a constructor
if you use javassist.expr.ExprEditor. Please read
the tutorial for more details. -
2. Re: Constructor -> Method
klagesb5 Sep 27, 2005 8:52 AM (in response to marcinbr)I have looked at the tutorial and I can't see how to do this. If you use an ExprEditor to dont you don't get the super call on the edit call back.
-
3. Re: Constructor -> Method
chiba Oct 28, 2005 11:16 AM (in response to marcinbr)I have just implemented a convenient method
toMethod() in CtConstructor. It changes a
constructor to a method. super() or this() in the
body of the original constructor is eliminated.
Please download from CVS HEAD.