XStream
  1. XStream
  2. XSTR-96

xstream cannot serialize subclasses of HashMap

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.1.1
    • Component/s: Converters
    • Labels:
      None

      Description

      this test fails:

      public class XStreamTest extends TestCase
      {
      public static class MyMap extends HashMap implements Map
      {

      }
      public void testCanExportSubclassesOfMap()

      { MyMap myMap = new MyMap(); myMap.put("hehe", "hoho"); XStream xstream = new XStream(); String xml = xstream.toXML(myMap); MyMap myOtherMap = (MyMap) xstream.fromXML(xml); assertEquals(myMap, myOtherMap); }

      }

        People

        • Assignee:
          Unassigned
          Reporter:
          Christoph Sturm
        • Votes:
          1 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: