2 Replies Latest reply on Mar 4, 2005 4:51 PM by joe greenwood

    array initializer is not supported

    joe greenwood Newbie

      Trying to do something like this :

      String expr = "public static final "+sorm+" fld"+niceName+" = new "+sorm+
       "(meta, \"fld"+niceName+"\", new sorm.properties.vals[] { sorm.con.MANDATORY });";
       } // end if
      
       CtField field = CtField.make(expr, genned);
       genned.addField(field);


      So basically the expression comes out to:
      public static final SInteger fldInteger = new SInteger(m, "fldInteger", new sorm.properties.vals[] { sorm.con.MANDATORY });


      Everything works fine except for the array initliazer. Any plans on when this would be implemented, or better yet, a better way to be able to provide similar functionality?

      thanks,
      Joe