[jboss-user] [Javassist] - Re: Compile problem with interface initialization

Enrico Palazzo do-not-reply at jboss.com
Thu Jul 19 15:45:09 EDT 2012


Enrico Palazzo [https://community.jboss.org/people/pulce] created the discussion

"Re: Compile problem with interface initialization"

To view the discussion, visit: https://community.jboss.org/message/749133#749133

--------------------------------------------------------------
Solved my issue, was quite obvious. When using the above code in a package, the .setInterfaces command must refer to the fully qualified name. Assuming the two files are in package "test", one must cast

evalClass.setInterfaces(new CtClass[] { pool.makeClass("test.Evaluator") });
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/749133#749133]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120719/2e402eaa/attachment.html 


More information about the jboss-user mailing list