FieldInfos fieldInfos = datasetVector.getFieldInfos();
FieldInfo fieldInfo = new FieldInfo();
fieldInfo.setName(reviewName);
fieldInfo.setRequired(false);
fieldInfo.setType(FieldType.TEXT);
fieldInfo.setCaption(reviewName);
fieldInfos.add(fieldInfo);
fieldInfos.add(fieldInfo);首次执行一直返回-1
调试模式在删除一个字段后,字段居然可以添加成功了...请问这是为什么呢
附上调试图片