]> granicus.if.org Git - postgresql/commit
ConnectionPool and SimpleDataSource are marked Serializable, but their
authorKris Jurka <books@ejurka.com>
Tue, 3 Feb 2004 05:28:17 +0000 (05:28 +0000)
committerKris Jurka <books@ejurka.com>
Tue, 3 Feb 2004 05:28:17 +0000 (05:28 +0000)
commitd71188860e9a0724770fa6a1b0c2cc02119c16a6
tree006e6af5f7dcbf7197e962f7534e524858a4d5b3
parent1a92a4c10c9d1f238dc4cee15bd875d815782637
ConnectionPool and SimpleDataSource are marked Serializable, but their
superclass (which contains a number of state variables) is not.  To
correctly serialize these objects we need to manually implement
writeObject and readObject.

Per report from R. Lemos
src/interfaces/jdbc/org/postgresql/jdbc2/optional/BaseDataSource.java
src/interfaces/jdbc/org/postgresql/jdbc2/optional/ConnectionPool.java
src/interfaces/jdbc/org/postgresql/jdbc2/optional/SimpleDataSource.java
src/interfaces/jdbc/org/postgresql/test/jdbc2/optional/ConnectionPoolTest.java