pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Thomas Lockhart <lockhart@alumni.caltech.edu>
Cc: Peter Mount <petermount@it.maidstone.gov.uk>
Cc: Lamar Owen <lamar.owen@wgcr.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Cc: Peter Mount (Home) <peter@retep.org.uk>
Subject: Re: [HACKERS] Request for 7.0 JDBC status
Date: Tue, 2 May 2000 07:40:39 -0400 (EDT)
Message-ID: <200005021140.HAA09209@candle.pha.pa.us> (raw)
In-Reply-To: <390EB8E2.6EE3D2DA@alumni.caltech.edu>

> > Not to bug you Peter, but 7.0 may not wait three days before release.
> 
> I would vote that this is important enough that it should wait, but no
> one has raised the issue until now so we haven't discussed it. The
> docs may or may not be completed within the next day (still jet-lagged
> from vacation, but waking up at 3am does leave some extra time in the
> morning, eh?), and if they stretch an extra day which is certainly
> possible then we are only talking about an extra day for this. No big
> deal in the grand scheme of things...
> 
> Peter, is there some testing that could/should be done with the new
> driver (by others) in the meantime, or is it pretty likely to be
> reasonably hashed out?

Just to add to my earlier report, here is the kaffe 1.05 compile
failure. What strikes me as odd is that Connection.java complains
because it can't find org/postgresql/Field, but if I try to compile
Field.java complains it can't find Connection.java.

Now, having the 6.5.3 JAR file, I can compile the 6.5.3 postgresql java
driver because I have the jar file to back up the unreferenced symbols. 
The 7.0 driver uses org.postgresql, which is not in the 6.5.3 JAR file,
so it fails.

The java IRC channel says kaffe isn't very good, so maybe I shouldn't be
worried about it.  They also said mutually-referencing java files are
not a good either.

Seems I may be able to modify the import lines in the java file to use
the 6.5.3 JAR file to get enough files compiled to compile the rest,
then recompile the entire thing.

Using the jar file compiled with Sun java works fine.  I can connect to
the database and run my program.

---------------------------------------------------------------------------

#$ gmake jdbc2
(echo "package org.postgresql;" ;\
 echo "public class DriverClass {" ;\
 echo "public static String connectClass=\"org.postgresql.jdbc2.Connection\";" ;\
 echo "}" \
) >org/postgresql/DriverClass.java
gmake[1]: Entering directory `/var/local/src/pgsql/CURRENT/pgsql/src/interfaces/jdbc'
javac -g org/postgresql/DriverClass.java
javac -g org/postgresql/Connection.java
org/postgresql/Connection.java:1: Can''t find class "org/postgresql/Field" §8
org/postgresql/Connection.java:529: Can''t find class "Fastpath" §8
gmake[1]: *** [org/postgresql/Connection.class] Error 1
gmake[1]: Leaving directory `/var/local/src/pgsql/CURRENT/pgsql/src/interfaces/jdbc'
gmake: *** [jdbc2] Error 2


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (46+ messages)  latest in thread

Message-ID: <200005021140.HAA09209@candle.pha.pa.us>
Permalink:  ../200005021140.HAA09209@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200005021140.HAA09209@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pgman@candle.pha.pa.us, lockhart@alumni.caltech.edu, petermount@it.maidstone.gov.uk, lamar.owen@wgcr.org, pgsql-hackers@postgresql.org, peter@retep.org.uk
  Subject: Re: [HACKERS] Request for 7.0 JDBC status
  In-Reply-To: <200005021140.HAA09209@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox