Bug #649: JDBC support won't compile

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #649: JDBC support won't compile
Дата
Msg-id 20020425202753.83B17476107@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
Ron Thomson (thomson@cps.cmich.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
runningSolaris 9, JDK1.4.0 and either PSQL7.1.2 or 7.2.1 (errors shown below).  Currently using an older .jar from
Solaris8 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.ResultSetshould 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.Statementshould 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.Connectionshould 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.DatabaseMetaDatashould 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.PreparedStatementshould 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.CallableStatementshould 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.PGblobshould 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.PGclobshould 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.ClientConnectionshould 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #648: connection JDBC-POSTGRESQL
Следующее
От: Holger Dörl
Дата:
Сообщение: regular expression and index on 7.2