Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 2838 invoked from network); 2 Aug 2006 04:49:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 04:49:49 -0000 Received: (qmail 26427 invoked by uid 500); 2 Aug 2006 04:49:48 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 26406 invoked by uid 500); 2 Aug 2006 04:49:48 -0000 Mailing-List: contact harmony-commits-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-commits@incubator.apache.org Received: (qmail 26395 invoked by uid 99); 2 Aug 2006 04:49:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 21:49:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 21:49:48 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BDE8B410025 for ; Wed, 2 Aug 2006 04:47:15 +0000 (GMT) Message-ID: <23340240.1154494035774.JavaMail.jira@brutus> Date: Tue, 1 Aug 2006 21:47:15 -0700 (PDT) From: "Andrew Zhang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1039) [classlib][luni] java.net.Inet6Address throws NullPointerException when deserializing an object with "null" interface name. In-Reply-To: <24179465.1154493195606.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1039?page=all ] Andrew Zhang updated HARMONY-1039: ---------------------------------- Attachment: Inet6Address.golden.1.ser Inet6Address.golden.1.ser is for described test to reproduce the bug. I'll upload a patch to fix this problem soon. Thanks! Best regards, Andrew > [classlib][luni] java.net.Inet6Address throws NullPointerException when deserializing an object with "null" interface name. > --------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1039 > URL: http://issues.apache.org/jira/browse/HARMONY-1039 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Andrew Zhang > Attachments: Inet6Address.golden.1.ser > > > java.net.Inet6Address throws NullPointerException when deserializing an object with "null" interface name. > Following test reproduces the bug: > public void testSerializationCompatibility_NullInterfaceName() throws Exception { > final String SERIALIZATION_FILE_NAME1 = "serialization/java/net/Inet6Address.golden.1.ser"; > byte[] localv6 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; > Inet6Address ia = (Inet6Address) InetAddress.getByAddress(localv6); > Inet6Address deIA = (Inet6Address) SerializationTester.readObject(ia, > SERIALIZATION_FILE_NAME1); > byte[] deAddr = deIA.getAddress(); > for (int i = 0; i < localv6.length; i++) { > assertEquals(localv6[i], deAddr[i]); > } > assertEquals(ia.getScopeId(), deIA.getScopeId()); > assertEquals(ia.getScopedInterface(), deIA.getScopedInterface()); > } > To run this test case, please: > 1. Copy the test to tests.api.java.net package.Inet6AddressTest > 2. Copy Inet6Address.golden.1.ser to serialization.java.net. > The test passes against RI while fails against Harmony. > I'll upload a patch to fix this problem soon. > Thanks! > Best regards, > Andrew -- 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