Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 35735 invoked from network); 19 Jun 2007 05:28:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 05:28:46 -0000 Received: (qmail 78128 invoked by uid 500); 19 Jun 2007 05:28:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 78037 invoked by uid 500); 19 Jun 2007 05:28:50 -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 78028 invoked by uid 99); 19 Jun 2007 05:28:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2007 22:28:50 -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; Mon, 18 Jun 2007 22:28:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 22C394297CB for ; Mon, 18 Jun 2007 22:28:26 -0700 (PDT) Message-ID: <5804733.1182230906139.JavaMail.jira@brutus> Date: Mon, 18 Jun 2007 22:28:26 -0700 (PDT) From: "Ruth Cao (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4210) [classlib][sql] javax.sql.SerialArray(Array) throws NullPointerException when one of the Array member is downcasted to Object In-Reply-To: <1063755.1182155546034.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-4210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruth Cao closed HARMONY-4210. ----------------------------- Thanks, Tony. The fix looks fine. > [classlib][sql] javax.sql.SerialArray(Array) throws NullPointerException when one of the Array member is downcasted to Object > ----------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4210 > URL: https://issues.apache.org/jira/browse/HARMONY-4210 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows XP / Linux > Reporter: Ruth Cao > Assignee: Tony Wu > Attachments: Harmony-4210.diff > > > Given the following test case: > public void testConstructor_ObjectArray() throws SQLException { > assertNotNull(new SerialArray(new SQLArray())); > } > private static class SQLArray implements java.sql.Array { > Object[] array; > SQLArray() throws SQLException { > char[] chars = { 'a', 'b', 'c', 'd' }; > array = new Object[1]; > array[0] = (Object) new SerialClob(chars); > } > public Object getArray() { > return array; > } > public int getBaseType() { > return java.sql.Types.CLOB; > } > /** Everything below here is just supplied to satisfy > the interface and is not part of this testcase. > **/ > public Object getArray(long index, int count) { > return null; > } > public Object getArray(long index, int count, Map> map) { > return null; > } > public Object getArray(Map> map) { > return null; > } > public String getBaseTypeName() { > return null; > } > public ResultSet getResultSet() { > return null; > } > public ResultSet getResultSet(long index, int count) { > return null; > } > public ResultSet getResultSet(Map> map) { > return null; > } > public ResultSet getResultSet(long index, int count, > Map> map) { > return null; > } > } > I'll create a patch for this soon, thanks. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.