harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth Cao (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3610) [classlib][luni]java.io.ObjectOutputStream.writeObjectOverride() throws IOException
Date Tue, 10 Apr 2007 09:04:32 GMT
[classlib][luni]java.io.ObjectOutputStream.writeObjectOverride() throws IOException 
------------------------------------------------------------------------------------

                 Key: HARMONY-3610
                 URL: https://issues.apache.org/jira/browse/HARMONY-3610
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Ruth Cao


The following test case:

private static class ObjectOutputStreamWriteOverride extends ObjectOutputStream {
        String test = "test";

        protected ObjectOutputStreamWriteOverride() throws IOException,
                SecurityException {
            super();
        }

        protected void writeObjectOverride(Object object) throws IOException {
            test = null;
            super.writeObjectOverride(object);
        }
}

public void test_writeObject_WriteOverride() throws Exception {
        ObjectOutputStreamWriteOverride mockOut = new ObjectOutputStreamWriteOverride();
        mockOut.writeObject(new Object());
        assertNull(mockOut.test);
   }

RI passes while Harmony throws IOException. It seems that the root cause is in the default
impl of ObjectOutputStream.writeObjectOverride(). I'll create a patch soon, thanks.

-- 
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