Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 90317 invoked from network); 14 Feb 2006 16:13:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Feb 2006 16:13:37 -0000 Received: (qmail 37213 invoked by uid 500); 14 Feb 2006 16:13:32 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 37157 invoked by uid 500); 14 Feb 2006 16:13:32 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 37146 invoked by uid 99); 14 Feb 2006 16:13:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 08:13:31 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 5157FDD for ; Tue, 14 Feb 2006 17:13:10 +0100 (CET) Message-ID: <1561857476.1139933590330.JavaMail.jira@ajax.apache.org> Date: Tue, 14 Feb 2006 17:13:10 +0100 (CET) From: "Stepan Mishura (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Updated: (HARMONY-91) Serialization: fails to deserialize stream in case of added class to hierarchy In-Reply-To: <1942580315.1139932360341.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-91?page=all ] Stepan Mishura updated HARMONY-91: ---------------------------------- Attachment: fixHarmony91.txt The patch contains a fix and a minimized test case: all serialization tests from security2 passed. Also I removed 2 tests from Harmony exclude list and, if Tim don't mind (I don't smoke at all :-)), I added CLASSPATH onto the bootclasspath for luni -need bcprov there to run the test. > Serialization: fails to deserialize stream in case of added class to hierarchy > ------------------------------------------------------------------------------ > > Key: HARMONY-91 > URL: http://issues.apache.org/jira/browse/HARMONY-91 > Project: Harmony > Type: Bug > Components: Classlib > Reporter: Stepan Mishura > Priority: Minor > Attachments: fixHarmony91.txt > > According to the serialization spec. adding classes is compatible change and shouldn't affect serialization. The current implementation of java.io.ObjectInputStream class fails to deserialize stream (reconstitute an object) in this case. Particularly, it fails when super class for added class contains serialized fields. > The following tests from security2 fail because of this bug: > 1) javax/security/auth/login/serialization/SerAccountExpiredExceptionTest.java (added javax.security.auth.login.AccountException in Java Spec 5.0 as super class) > 2) javax/security/auth/login/serialization/SerCredentialExpiredExceptionTest.java (added javax.security.auth.login.CredentialException in Java Spec 5.0 as super class) > I've create serial form by hands to provide minimized test case with dynamic generation of required serialization byte array (i.e. serialization form now is immune for test class rename) but it is still quite long. So I'll add a test case to reproduce the failure as a patch for this JIRA bug. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira