This content has been marked as final.
Show 1 reply
-
1. Re: javassist.CannotCompileException when using interfaces
derari Dec 19, 2009 8:34 AM (in response to derari)I found it after a lot of trying
the tutorial I was using said
proxyClass.setInterfaces(
new CtClass[] { pool.makeClass(iface.getCanonicalName()) });is the way to extend an Interface, but
proxyClass.setInterfaces(
new CtClass[] { pool.get(iface.getCanonicalName()) });
made it work.