This content has been marked as final.
Show 2 replies
-
1. Re: altering constructor implementation: how-to ?
chiba May 31, 2005 4:24 AM (in response to lamontagnebleue)Did you use getMethodInfo() in CtBehavior
instead of getMethodInfo2() at Line 5? -
2. Re: altering constructor implementation: how-to ?
lamontagnebleue Jun 4, 2005 3:33 PM (in response to lamontagnebleue)"chiba" wrote:
Did you use getMethodInfo() in CtBehavior
instead of getMethodInfo2() at Line 5?
Chiba san,
Sorry for such a late answer (gomen nasai).
The implementation of the method i'm using to retrieve the constructor is:
private static MethodInfo getTheConstructor (
CtClass ctclazz, String methodSig)
throws NotFoundException
{
CtConstructor ctor = ctclazz.getConstructor (methodSig);
return ctor.getMethodInfo ();
}