harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spark shen (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4487) [classlib][beans] Persistence delegate for j.u.Map is missing
Date Wed, 18 Jul 2007 08:53:04 GMT
[classlib][beans] Persistence delegate for j.u.Map is missing

                 Key: HARMONY-4487
                 URL: https://issues.apache.org/jira/browse/HARMONY-4487
             Project: Harmony
          Issue Type: Improvement
          Components: Classlib
            Reporter: spark shen

Following test case will pass on RI, but fail on Harmony.
public void test_writeObject_java_util_Map(){
		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
		XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
		TreeMap<Integer, String> map = new TreeMap<Integer, String>();
		map.put(new Integer(10), "first element");

		DataInputStream stream = new DataInputStream(new ByteArrayInputStream(
		XMLDecoder decoder = new XMLDecoder(stream);
		TreeMap aMap = (TreeMap) decoder.readObject();
		assertEquals(map.size(), aMap.size());
		assertEquals(map.get(10), aMap.get(10));
A persistence delegate for Map class should be added to fix this bug.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message