XStream
  1. XStream
  2. XSTR-102

Doesn't work with MultiHashMap

    Details

    • Type: Bug Bug
    • Status: Closed 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);
      }

        People

        • Assignee:
          Unassigned
          Reporter:
          Nick Pomfret
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: