harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3889) [classlib][luni] Harmony fails to deserialize org.jfree.data.category.DefaultCategoryDataset
Date Thu, 17 May 2007 11:26:16 GMT
[classlib][luni]  Harmony fails to deserialize org.jfree.data.category.DefaultCategoryDataset
---------------------------------------------------------------------------------------------

                 Key: HARMONY-3889
                 URL: https://issues.apache.org/jira/browse/HARMONY-3889
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Andrew Zhang


Following test case reproduces the problem:

public void testSerializable() throws Exception {
        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        getSerialiableObject(dataset);
    }
   
    public static Object getSerialiableObject(Object obj) throws Exception {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(baos);
        oos.writeObject(obj);
        oos.close();
        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
        ObjectInputStream fis = new ObjectInputStream(bais);
        return fis.readObject();
    }

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


Mime
View raw message