[libpostgresql-jdbc-java] 07/08: Fix up the previous patch to ensure datasource parameters are set properly. We must close the ObjectOutputStream to flush the data to the byte array.

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


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

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

commit 4c0f8961e1184ec19ca2055149c0e5e1c807cd73
Author: Kris Jurka <books at ejurka.com>
Date:   Sat May 1 20:35:51 2010 +0000

    Fix up the previous patch to ensure datasource parameters are set
    properly.  We must close the ObjectOutputStream to flush the data
    to the byte array.
---
 org/postgresql/ds/common/BaseDataSource.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org/postgresql/ds/common/BaseDataSource.java b/org/postgresql/ds/common/BaseDataSource.java
index 527365e..e1711e5 100644
--- a/org/postgresql/ds/common/BaseDataSource.java
+++ b/org/postgresql/ds/common/BaseDataSource.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v 1.7 2005/02/02 23:30:31 oliver Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v 1.7.4.1 2010/05/01 15:43:59 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -332,6 +332,7 @@ public abstract class BaseDataSource implements Referenceable
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         ObjectOutputStream oos = new ObjectOutputStream(baos);
         source.writeBaseObject(oos);
+        oos.close();
         ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
         ObjectInputStream ois = new ObjectInputStream(bais);
         readBaseObject(ois);

-- 
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