Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 64586 invoked from network); 18 Jun 2007 08:32:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2007 08:32:48 -0000 Received: (qmail 42790 invoked by uid 500); 18 Jun 2007 08:32:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42701 invoked by uid 500); 18 Jun 2007 08:32: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 42692 invoked by uid 99); 18 Jun 2007 08:32: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 01:32: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 01:32:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0911271419B for ; Mon, 18 Jun 2007 01:32:26 -0700 (PDT) Message-ID: <1063755.1182155546034.JavaMail.jira@brutus> Date: Mon, 18 Jun 2007 01:32:26 -0700 (PDT) From: "Ruth Cao (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4210) [classlib][sql] javax.sql.SerialArray(Array) throws NullPointerException when one of the Array member is downcasted to Object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [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 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.