Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
JDK version and platform:1.6u3 for linux
Description
//the following test will always failed
public void testArrayListOrder() {
XStream xs = new XStream(new JettisonMappedXmlDriver());
ArrayList list1 = new ArrayList();
list1.clear();
list1.add(12);
list1.add("string");
list1.add(13);
String json = xs.toXML(list1);
ArrayList list2 = (ArrayList)xs.fromXML(json);
assertEquals(json,xs.toXML(list2));
}
actually, i tried with list, vector and array. both of them failed. that's why i issue this bug:
JettisonMappedXmlDriver doesn't work for collection object.