2 Replies Latest reply on Nov 28, 2005 7:06 AM by Gonçalo Luiz

    Varargs Injection Unsupported ?

    Gonçalo Luiz Newbie

      Hello, I'm trying to inject some code that invokes a class' constructor that has vargars.

      Javassist is giving me a CouldNotCompileException

      The problem is in the compareSignature method in MemberResolver.java, line 169 that checks if the parameters vector lenght is equals.
      Well being a varargs constructor the parameters might not be equals in the method invocation and in the method declaration (thats the varargs essency).

      Can this be fixed?

      Thank you very much.

      Aside from this and the other Annotation thread I created I haven't came across any more problems.