[libpostgresql-jdbc-java] 05/08: Fix recently added Byte type test code to work under JDK1.4. It was using Byte.valueOf(byte) which is a JDK1.5 method.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:19:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL8_0_320
in repository libpostgresql-jdbc-java.

commit 56c000ac0f843971d3fd343f7403cdc98bc875d9
Author: Kris Jurka <books at ejurka.com>
Date:   Sat Jul 21 15:58:30 2007 +0000

    Fix recently added Byte type test code to work under JDK1.4.  It was
    using Byte.valueOf(byte) which is a JDK1.5 method.
---
 org/postgresql/test/jdbc3/TypesTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/test/jdbc3/TypesTest.java b/org/postgresql/test/jdbc3/TypesTest.java
index 255ae18..a775556 100644
--- a/org/postgresql/test/jdbc3/TypesTest.java
+++ b/org/postgresql/test/jdbc3/TypesTest.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v 1.6 2005/01/11 08:25:49 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v 1.6.2.1 2007/06/22 21:37:53 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -59,7 +59,7 @@ public class TypesTest extends TestCase {
     public void testPreparedByte() throws SQLException {
         PreparedStatement pstmt = _conn.prepareStatement("SELECT ?,?");
         pstmt.setByte(1, (byte)1);
-        pstmt.setObject(2, Byte.valueOf((byte)2));
+        pstmt.setObject(2, new Byte((byte)2));
         ResultSet rs = pstmt.executeQuery();
         assertTrue(rs.next());
         assertEquals((byte)1, rs.getByte(1));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list