Bug #649: JDBC support won't compile

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #649: JDBC support won't compile
Date: 2002-04-25 20:27:53
Message-ID: 20020425202753.83B17476107@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ron Thomson (thomson(at)cps(dot)cmich(dot)edu) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
JDBC support won't compile

Long Description
I have an instructor whose class assignments use Java and Postgresql. The JDBC support won't compile on a SunBlade100 running Solaris 9, JDK1.4.0 and either PSQL7.1.2 or 7.2.1 (errors shown below). Currently using an older .jar from Solaris 8 and JDK1.2.x and trying to get ready for next semester.

Sample Code
make[3]: Entering directory `/misc/01/postgresql-7.2.1/src/interfaces/jdbc'
/usr/local/ant/bin/ant -buildfile ./build.xml all \
-Dmajor=7 -Dminor=2 -Dfullversion=7.2.1 -Ddef_pgport=5432
Buildfile: ./build.xml

all:

prepare:
[mkdir] Created dir: /misc/01/postgresql-7.2.1/src/interfaces/jdbc/build
[mkdir] Created dir: /misc/01/postgresql-7.2.1/src/interfaces/jdbc/jars

check_versions:

driver:
[copy] Copying 1 file to /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql
[echo] Configured build for the JDBC2 Enterprise edition driver

compile:
[javac] Compiling 53 source files to /misc/01/postgresql-7.2.1/src/interfaces/jdbc/build
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/XAConnectionImpl.java:57: cannot resolve symbol
[javac] symbol : class RollbackException
[javac] location: package transaction
[javac] import javax.transaction.RollbackException;
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60: org.postgresql.jdbc2.ResultSet should be declared abstract; it does not define getURL(int) in org.postgresql.jdbc2.ResultSet
[javac] public class ResultSet extends org.postgresql.ResultSet implements java.sql.ResultSet
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java:25: org.postgresql.jdbc2.Statement should be declared abstract; it does not define getMoreResults(int) in org.postgresql.jdbc2.Statement
[javac] public class Statement extends org.postgresql.Statement implements java.sql.Statement
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java:37: org.postgresql.jdbc2.Connection should be declared abstract; it does not define setHoldability(int) in org.postgresql.jdbc2.Connection
[javac] public class Connection extends org.postgresql.Connection implements java.sql.Connection
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java:40: org.postgresql.jdbc2.DatabaseMetaData should be declared abstract; it does not define supportsSavepoints() in org.postgresql.jdbc2.DatabaseMetaData
[javac] public class DatabaseMetaData implements java.sql.DatabaseMetaData
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java:32: org.postgresql.jdbc2.PreparedStatement should be declared abstract; it does not define setURL(int,java.net.URL) in org.postgresql.jdbc2.PreparedStatement
[javac] public class PreparedStatement extends Statement implements java.sql.PreparedStatement
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42: org.postgresql.jdbc2.CallableStatement should be declared abstract; it does not define registerOutParameter(java.lang.String,int) in org.postgresql.jdbc2.CallableStatement
[javac] public class CallableStatement extends org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/largeobject/PGblob.java:26: org.postgresql.largeobject.PGblob should be declared abstract; it does not define setBytes(long,byte[]) in org.postgresql.largeobject.PGblob
[javac] public class PGblob implements java.sql.Blob
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26: org.postgresql.largeobject.PGclob should be declared abstract; it does not define setString(long,java.lang.String) in org.postgresql.largeobject.PGclob
[javac] public class PGclob implements java.sql.Clob
[javac] ^
[javac] /misc/01/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/ClientConnection.java:70: org.postgresql.xa.ClientConnection should be declared abstract; it does not define setHoldability(int) in org.postgresql.xa.ClientConnection
[javac] final class ClientConnection
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 10 errors

BUILD FAILED

/misc/01/postgresql-7.2.1/src/interfaces/jdbc/build.xml:72: Compile failed, messages should have been provided.

No file was uploaded with this report

Browse pgsql-bugs by date

  From Date Subject
Next Message Holger Dörl 2002-04-25 22:21:02 regular expression and index on 7.2
Previous Message pgsql-bugs 2002-04-25 19:25:32 Bug #648: connection JDBC-POSTGRESQL