[libpostgresql-jdbc-java] 08/14: 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:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_2_506
in repository libpostgresql-jdbc-java.
commit dd7439eb5aca8f368b8c736b30bc3472e8b1540e
Author: Kris Jurka <books at ejurka.com>
Date: Sat Jul 21 15:58:21 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 e5d7391..e568f1d 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.9 2006/05/15 09:35:57 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v 1.9.2.1 2007/06/22 21:37:40 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