dbTalk Databases Forums  

[BUGS] BUG #1065: JDBC DataSource Serializability

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1065: JDBC DataSource Serializability in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1065: JDBC DataSource Serializability - 01-24-2004 , 04:28 PM







The following bug has been logged online:

Bug reference: 1065
Logged by: R. Lemos

Email address: rslemos (AT) nce (DOT) ufrj.br

PostgreSQL version: 7.4

Operating system: Linux

Description: JDBC DataSource Serializability

Details:

The JDBC2 pooled datasource(org.postgresql.jdbc2.optional.Connectio nPool),
although implements java.io.Serializable, cannot be correctly serialized.
Its superclass does not implement java.io.Serializable and have important
fields marked as private.

Either should the superclass be Serializable or its fields non-private
(protected, friend or public).

To reproduce the issue just create and setup a ConnectionPool, serialize and
desserialize it (ByteArray*Stream will do). The new object doesn't have the
properties correctly set.

This may apply to other DataSource implementations (JDBC3 and non-pooled).

PS: I could have corrected this and submitted the patch, but I don't know
why are those properties private nor why isn't the superclass Serializable,
so I could not preview the impact those changes would make.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.