Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 16076 invoked from network); 22 Apr 2009 21:39:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 21:39:10 -0000 Received: (qmail 55950 invoked by uid 500); 22 Apr 2009 21:39:10 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 55911 invoked by uid 500); 22 Apr 2009 21:39:10 -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 55902 invoked by uid 99); 22 Apr 2009 21:39:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 21:39:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 21:39:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8FA45234C045 for ; Wed, 22 Apr 2009 14:38:47 -0700 (PDT) Message-ID: <1053703102.1240436327587.JavaMail.jira@brutus> Date: Wed, 22 Apr 2009 14:38:47 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6143) [classlib][beans] java.beans.beancontext.BeanContextSupport.readChildren((ObjectInputStream) null) should throw NullPointerException In-Reply-To: <1982832756.1239257293365.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison updated HARMONY-6143: --------------------------------- Fix Version/s: (was: 5.0M9) 5.0M10 > [classlib][beans] java.beans.beancontext.BeanContextSupport.readChildren((ObjectInputStream) null) should throw NullPointerException > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-6143 > URL: https://issues.apache.org/jira/browse/HARMONY-6143 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M8 > Reporter: Kevin Zhou > Assignee: Tim Ellison > Fix For: 5.0M10 > > Attachments: HARMONY-6143.diff > > Original Estimate: 48h > Remaining Estimate: 48h > > Given a test case [1], RI passes them all while HY fails the 1st test scenario. > Initialize a BeanContextSupport object using default constructor, add a object which implements Serializable. Then invoking readChildren of this object triggers a NullPointerException. > But for HY, it needs to write this added object first, then invoking readChildren of this object can trigger a NullPointerException; otherwise no exception is thrown. > [1] Test Case: > public void test_readChildren_scenario1() throws Exception { > BeanContextSupport beanContextSupport = new BeanContextSupport(); > beanContextSupport.add("Serializable"); > try { > beanContextSupport.readChildren((ObjectInputStream) null); > fail("should throw NullPointerException"); > } catch (NullPointerException e) { > // Expected > } > } > public void test_readChildren_scenario2() throws Exception { > BeanContextSupport beanContextSupport = new BeanContextSupport(); > beanContextSupport.add("Serializable"); > beanContextSupport.writeChildren(new ObjectOutputStream(new ByteArrayOutputStream())); > try { > beanContextSupport.readChildren((ObjectInputStream) null); > fail("should throw NullPointerException"); > } catch (NullPointerException e) { > // Expected > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.