Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 54352 invoked from network); 13 Apr 2007 02:52:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 02:52:36 -0000 Received: (qmail 87924 invoked by uid 500); 13 Apr 2007 02:52:42 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 87826 invoked by uid 500); 13 Apr 2007 02:52:42 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 87817 invoked by uid 99); 13 Apr 2007 02:52:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 19:52:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 19:52:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8BA7571407B for ; Thu, 12 Apr 2007 19:52:15 -0700 (PDT) Message-ID: <6381063.1176432735569.JavaMail.jira@brutus> Date: Thu, 12 Apr 2007 19:52:15 -0700 (PDT) From: "Ruth Cao (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-3610) [classlib][luni]java.io.ObjectOutputStream.writeObjectOverride() throws IOException In-Reply-To: <11404917.1176195872401.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruth Cao closed HARMONY-3610. ----------------------------- Paulex, it's really better to use 'subclassOverridingImplementation', which makes the logic more clear. The fix looks fine, Thanks. > [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.