field : param
class : xmleditor.domain.Type
required-type : xmleditor.domain.Type
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /root/type/param[2]
I get this error to get a duplicate of Param. But when I try to use
xstream.addImplicitCollection
I get this error:
Exception in thread "main" com.thoughtworks.xstream.InitializationException: Field "param" declares no collection or array.
So I don’t know what my problem is.
@XStreamAlias("root")
public class Type {
private Info info;
@XStreamAlias("OBJECT_TYPE")
private String objectType;
private Properties prop;
private Parameters param;
private Restrictions restri;
@XStreamImplicit(itemFieldName = "type")
private List typeList = new ArrayList();
What could be causing this problem?
source
share