[libpostgresql-jdbc-java] 09/13: 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:20:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_1_410
in repository libpostgresql-jdbc-java.
commit bb6c723dc17ea8c50f2cb0bd68ae0b07a42a5642
Author: Kris Jurka <books at ejurka.com>
Date: Sat Jul 21 15:58:25 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 b67b11a..9f9e6cc 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.7 2005/07/04 18:50:30 davec Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v 1.7.2.1 2007/06/22 21:37:47 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -67,7 +67,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