Issue Details (XML | Word | Printable)

Key: XSTR-96
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Christoph Sturm
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

xstream cannot serialize subclasses of HashMap

Created: 28/Jun/04 07:56 PM   Updated: 06/Feb/05 07:05 AM
Component/s: Converters
Affects Version/s: 1.0.1
Fix Version/s: 1.1.1


 Description  « Hide
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); }

}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joe Walnes added a comment - 17/Jan/05 04:49 PM
Just missed 1.1 release, but fixed now. Available in CVS