[jboss-user] [Javassist user questions] - Unexpected change of CtConstructor parameter type

2008-10-30 Thread Juda
I've noticed strange CtConstructor's constructor behavior. The following code illustrates the problem: | import javassist.ClassPool; | import javassist.CtClass; | import javassist.CtConstructor; | | public class Test { | Test( Test t ){} | | public static void main(Strin

[jboss-user] [Javassist user questions] - No support for varargs in the CtConstructor/CtMethod

2008-10-28 Thread Juda
Is there any way at all to set 'varargs' flag for the CtConstructor/CtMethod? I have noticed that it defaults to 'false'. In some cases it does matter if the method is a 'varargs' or not - simple workaround by checking the method's last argument isn't sufficient, because even if it is an array,