Details
-
Type: Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2
-
Component/s: None
-
Labels:None
Description
The following throws a NPE deep inside java.util.HashMap$HashIterator:
XStream xStream = new XStream();
MultiHashMap map = new MultiHashMap();
map.put("a", "stuff");
map.put("a", "more stuff");
Map output = (Map) xStream.fromXML(xStream.toXML(map));
Collection collection = output.values();
for (Iterator iterator = collection.iterator(); iterator.hasNext() {
Object o = (Object) iterator.next();
System.out.println("o = " + o);
}
Jdk 1.5, Jakarta Collection 3.1 + XStream 1.1.3 works fine. Also tested with latest snapshot and ok.
Nick Pomfret, can you tell us if it is working nowadays?