Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
For example i have these classes and interfaces:
public interface Payload {
public String getType();
}
public class Session implements Payload {
private String startTime;
private String entTime;
private List events = new ArrayList();
....
}
public class Message {
private Payload payload;
...
public String toXML()
}
when i use the method, if the ArrayList is empty, it produces a single </events> in the xml string where the events are supposed to be instead of producing nothing for the events. i know xstream has problem with inheritance but i am not sure if this is the case.
Sorry, i think i misunderstood the result, system is producing <listName/>, not </listName>. Then question is, is this normal?