Re: BUG #1172: JDBC driver fails to compile

From: Kris Jurka <books(at)ejurka(dot)com>
To: Werner Bohl <wbohl(at)deepdata(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1172: JDBC driver fails to compile
Date: 2004-06-17 21:43:32
Message-ID: Pine.BSO.4.56.0406171640330.16501@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, 17 Jun 2004, Werner Bohl wrote:

> 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.getDataSource(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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kris Jurka 2004-06-17 21:45:53 Re: BUG #1168: JDBC compile fails using Java 1.5.0-beta2
Previous Message Werner Bohl 2004-06-17 20:51:53 Re: BUG #1172: JDBC driver fails to compile