[jboss-user] [Javassist] - Error adding new field like ArrayList<String>

Toni Fernan do-not-reply at jboss.com
Fri Apr 23 08:59:49 EDT 2010


Toni Fernan [http://community.jboss.org/people/i02fesea] created the discussion

"Error adding new field like ArrayList<String>"

To view the discussion, visit: http://community.jboss.org/message/539222#539222

--------------------------------------------------------------
Hi everyone,

I am trying to add a complex field like ArrayList<String>, but for the moment I didn't have any luck.


String declaration = "private java.util.List<String> x = new java.util.ArrayList<java.lang.String>();";
 
CtField f = CtField.make(declaration, fieldClass);
 
fieldClass.addField(f);
 
fieldClass.writeFile();


Can someone tell me if this is possible? Thank you for any help

--------------------------------------------------------------

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

Start a new discussion in Javassist at Community
[http://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/20100423/1b40635e/attachment.html 


More information about the jboss-user mailing list