0 Replies Latest reply on Apr 23, 2010 8:59 AM by Toni Fernan

    Error adding new field like ArrayList<String>

    Toni Fernan Newbie

      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