Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 25338 invoked from network); 15 Jun 2006 15:52:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 15:52:12 -0000 Received: (qmail 97740 invoked by uid 500); 15 Jun 2006 15:52:12 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 97670 invoked by uid 500); 15 Jun 2006 15:52:11 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 97658 invoked by uid 99); 15 Jun 2006 15:52:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 08:52:11 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 08:52:10 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 4A5DA1A983A; Thu, 15 Jun 2006 08:51:50 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r414624 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4: CallableStatementTest.java ResultSetTest.java TestPreparedStatementMethods.java Date: Thu, 15 Jun 2006 15:51:49 -0000 To: derby-commits@db.apache.org From: rhillegas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060615155150.4A5DA1A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: rhillegas Date: Thu Jun 15 08:51:48 2006 New Revision: 414624 URL: http://svn.apache.org/viewvc?rev=414624&view=rev Log: DERBY-1417: committed derby-1417-01-castsInTests, which adds some casts to some jdbc4 tests so that the tests will compile when the new streaming overloads turn up in a future build of jdk1.6 Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java?rev=414624&r1=414623&r2=414624&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java Thu Jun 15 08:51:48 2006 @@ -377,7 +377,7 @@ public void testSetBlobNotImplemented() throws SQLException { try { - cStmt.setBlob("some-parameter-name", null); + cStmt.setBlob("some-parameter-name", (Blob)null); fail("CallableStatement.setBlob(String, Blob) " + "should not be implemented"); } catch (SQLFeatureNotSupportedException sfnse) { @@ -388,7 +388,7 @@ public void testSetClobNotImplemented() throws SQLException { try { - cStmt.setClob("some-parameter-name", null); + cStmt.setClob("some-parameter-name", (Clob)null); fail("CallableStatement.setClob(String, Clob) " + "should not be implemented"); } catch (SQLFeatureNotSupportedException sfnse) { @@ -410,7 +410,7 @@ public void testSetNClobNClobNotImplemented() throws SQLException { try { - cStmt.setNClob("some-parameter-name", null); + cStmt.setNClob("some-parameter-name", (NClob)null); fail("CallableStatement.setNClob(String, NClob) " + "should not be implemented"); } catch (SQLFeatureNotSupportedException sfnse) { Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java?rev=414624&r1=414623&r2=414624&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java Thu Jun 15 08:51:48 2006 @@ -184,7 +184,7 @@ public void testUpdateNClobNotIntImplemented() throws SQLException { try { - rs.updateNClob(1, null); + rs.updateNClob(1, (NClob)null); fail("ResultSet.updateNClob(int, NClob) " + "should not be implemented"); } catch (SQLFeatureNotSupportedException sfnse) { @@ -195,7 +195,7 @@ public void testUpdateNClobStringNotImplemented() throws SQLException { try { - rs.updateNClob("some-column-name", null); + rs.updateNClob("some-column-name", (NClob)null); fail("ResultSet.updateNClob(String, NClob) " + "should not be implemented"); } catch (SQLFeatureNotSupportedException sfnse) { Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java?rev=414624&r1=414623&r2=414624&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java Thu Jun 15 08:51:48 2006 @@ -97,7 +97,7 @@ } void t_setNClob1() { try { - ps.setNClob(0,null); + ps.setNClob(0,(NClob)null); System.out.println("UnImplemented Exception not thrown in code"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) {