dbTalk Databases Forums  

[BUGS] BUG #1172: JDBC driver fails to compile

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


Discuss [BUGS] BUG #1172: JDBC driver fails to compile in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] BUG #1172: JDBC driver fails to compile - 06-17-2004 , 02:49 PM







The following bug has been logged online:

Bug reference: 1172
Logged by: Werner Bohl

Email address: wbohl (AT) deepdata (DOT) com

PostgreSQL version: 7.4

Operating system: Fedora core release 2

Description: JDBC driver fails to compile

Details:

Postgresql version: 7.4.3
Java: j2sdk_1.4.2_04
ant: 1.5.2-26

JDBC driver fails to compile with error:

/usr/local/src/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jd
`org.postgresql.jdbc2.optional.PoolingDataSource.g etDataSource(java.lang.St
[javac] bc3PoolingDataSource.java:29: error: Method ring)' was defined
with return type `org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
[javac] static Jdbc3PoolingDataSource getDataSource(String name)



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

Reply With Quote
  #2  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #1172: JDBC driver fails to compile - 06-17-2004 , 03:22 PM








On Thu, 17 Jun 2004, PostgreSQL Bugs List wrote:

Quote:
The following bug has been logged online:

Bug reference: 1172
Operating system: Fedora core release 2
Description: JDBC driver fails to compile

Postgresql version: 7.4.3
Java: j2sdk_1.4.2_04
ant: 1.5.2-26

JDBC driver fails to compile with error:

/usr/local/src/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jd
`org.postgresql.jdbc2.optional.PoolingDataSource.g etDataSource(java.lang.St
[javac] bc3PoolingDataSource.java:29: error: Method ring)' was defined
with return type `org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
[javac] static Jdbc3PoolingDataSource getDataSource(String name)

This error message is pretty mangled, but I suspect you might have another
version of the driver somewhere on the classpath. The driver will fail
to compile in this situation as it gets confused with the
different versions of the same class.

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #3  
Old   
Werner Bohl
 
Posts: n/a

Default Re: [BUGS] BUG #1172: JDBC driver fails to compile - 06-17-2004 , 03:57 PM



On Thu, 2004-06-17 at 14:09, Kris Jurka wrote:
Quote:
On Thu, 17 Jun 2004, PostgreSQL Bugs List wrote:


The following bug has been logged online:

Bug reference: 1172
Operating system: Fedora core release 2
Description: JDBC driver fails to compile

Postgresql version: 7.4.3
Java: j2sdk_1.4.2_04
ant: 1.5.2-26

JDBC driver fails to compile with error:

/usr/local/src/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jd
`org.postgresql.jdbc2.optional.PoolingDataSource.g etDataSource(java.lang.St
[javac] bc3PoolingDataSource.java:29: error: Method ring)' was defined
with return type `org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
[javac] static Jdbc3PoolingDataSource getDataSource(String name)


This error message is pretty mangled, but I suspect you might have another
version of the driver somewhere on the classpath. The driver will fail
to compile in this situation as it gets confused with the
different versions of the same class.

No, my classpath is empty! I managed to compile fixing the following:
on class Jdbc3PoolingDataSource lines 29 & 31 changed
Jdbc3PoolingDataSource for PoolingDataSource.

On class Jdbc3ObjectFactory line 46 added a cast to
Jdbc3PoolingDataSource.

Quote:
Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #4  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #1172: JDBC driver fails to compile - 06-17-2004 , 04:49 PM





On Thu, 17 Jun 2004, Werner Bohl wrote:

Quote:
On Thu, 2004-06-17 at 14:09, Kris Jurka wrote:
On Thu, 17 Jun 2004, PostgreSQL Bugs List wrote:

Postgresql version: 7.4.3
Java: j2sdk_1.4.2_04
ant: 1.5.2-26

JDBC driver fails to compile with error:

/usr/local/src/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/jdbc3/Jd
`org.postgresql.jdbc2.optional.PoolingDataSource.g etDataSource(java.lang.St
[javac] bc3PoolingDataSource.java:29: error: Method ring)' was defined
with return type `org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
[javac] static Jdbc3PoolingDataSource getDataSource(String name)


This error message is pretty mangled, but I suspect you might have another
version of the driver somewhere on the classpath. The driver will fail
to compile in this situation as it gets confused with the
different versions of the same class.

No, my classpath is empty! I managed to compile fixing the following:
on class Jdbc3PoolingDataSource lines 29 & 31 changed
Jdbc3PoolingDataSource for PoolingDataSource.

On class Jdbc3ObjectFactory line 46 added a cast to
Jdbc3PoolingDataSource.

Taking a closer look the driver has some rather odd code there, but I get
no failure here. Is there any change you aren't really using sun's jdk to
compile this and one of the free compilers out there?

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


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.