[jboss-user] [Javassist] - Generating a method with Generics

Prabhath Suminda do-not-reply at jboss.com
Mon Jul 16 02:43:11 EDT 2012

Prabhath Suminda [https://community.jboss.org/people/prabhathp] created the discussion

"Generating a method with Generics"

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

For the project I am workking on I need to generate a class like this.
class Foo{
     pubic void doSomething(List<String> l){

But this falis when I called CtNewMethod.make() for the doSOmething method because of generics. In te documentation it is ssaid that this can be done using low level APIs of Java Assisst but I could not find any documentations on how to do this. So can anyone give a example on how to create the above class.

Reply to this message by going to Community

Start a new discussion in Javassist at Community

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

More information about the jboss-user mailing list