harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-3610) [classlib][luni]java.io.ObjectOutputStream.writeObjectOverride() throws IOException
Date Thu, 12 Apr 2007 09:45:32 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paulex Yang resolved HARMONY-3610.
----------------------------------

    Resolution: Fixed

Ruth, patch applied with some modifications at r527857, I used a boolean field "subclassOverridingImplementation"
as condition instead of the status of OutputStream instance, seems this boolean is defined
for this kind of usage. Please verify, thanks a lot.

> [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
>         Assigned To: Paulex Yang
>         Attachments: Harmony-3610.diff
>
>
> 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