logo       

[xstream-dev] [jira] Created: (XSTR-102) Doesn't work with MultiHashMap: msg#00020

java.xstream.devel

Subject: [xstream-dev] [jira] Created: (XSTR-102) Doesn't work with MultiHashMap

Message:

A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/XSTR-102

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XSTR-102
Summary: Doesn't work with MultiHashMap
Type: Bug

Status: Unassigned

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: XStream

Assignee:
Reporter: Nick Pomfret

Created: Sat, 24 Jul 2004 4:54 AM
Updated: Sat, 24 Jul 2004 4:54 AM

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);
}


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise