This content has been marked as final.
Show 3 replies
-
1. Re: Creating interfaces
chiba Sep 6, 2004 12:20 AM (in response to leandro.saad)
1) How do I create interfaces ?
I can call pool.makeInterface("SomeInterface");
but I can't add method on it. Javassist seems to required a method body.
You can use a constructor of CtMethod or CtNewMethod#abstractMethod()
for creating an interface method.
2) How do I make Javassist use a defined class loader to create my class/interface when I call CtClass.toClass() ??
Use CtClass#toClass(ClassLoader), which receives a class loader as
a parameter. -
2. Re: Creating interfaces
leandro.saad Sep 6, 2004 9:38 AM (in response to leandro.saad)I guess this is onlu on cvs right ?
I'm using javassist-3.0beta2.
ok. I'll co javassist from cvs. thanks ! -
3. Re: Creating interfaces
chiba Sep 6, 2004 10:04 AM (in response to leandro.saad)Ah, yes. I must release RC1 very soon...