Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 42666 invoked from network); 14 Sep 2007 03:40:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2007 03:40:53 -0000 Received: (qmail 88384 invoked by uid 500); 14 Sep 2007 03:40:45 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 88363 invoked by uid 500); 14 Sep 2007 03:40:45 -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 88354 invoked by uid 99); 14 Sep 2007 03:40:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 20:40:45 -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; Fri, 14 Sep 2007 03:40:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C22471413F for ; Thu, 13 Sep 2007 20:40:32 -0700 (PDT) Message-ID: <22818112.1189741232077.JavaMail.jira@brutus> Date: Thu, 13 Sep 2007 20:40:32 -0700 (PDT) From: "Tony Wu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-4792) [classlib][beans] NullPersistenceDelegate.instantiate(Object, Encoder) should return null In-Reply-To: <15612810.1189737032093.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-4792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tony Wu resolved HARMONY-4792. ------------------------------ Resolution: Fixed Patch applied at r575521, thanks for your contribution, please verify. > [classlib][beans] NullPersistenceDelegate.instantiate(Object, Encoder) should return null > ----------------------------------------------------------------------------------------- > > Key: HARMONY-4792 > URL: https://issues.apache.org/jira/browse/HARMONY-4792 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Regis Xu > Assignee: Tony Wu > Attachments: Harmony-4792.diff, nulldelegate.zip > > > below test case pass in ri but fail in harmony > public void test_instantiate_LObject_LEncoder() throws Exception { > Encoder enc = new Encoder(); > PersistenceDelegate pd = enc.getPersistenceDelegate(null); > Expression exp = pd.instantiate(null, enc); > assertNull(exp); > > exp = pd.instantiate(new Object(), enc); > assertNull(exp); > > exp = pd.instantiate(null, null); > assertNull(exp); > > exp = pd.instantiate(new Object(), null); > assertNull(exp); > } > and below test case pass in ri but throws NPE in hamrony > public void test_writeObject_LObject_LEncoder() { > Encoder enc = new Encoder(); > PersistenceDelegate pd = enc.getPersistenceDelegate(null); > pd.writeObject(null, null); > } > I'll create a patch for this soon -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.