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]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to