Compile failure in CVS
От | Bruce Momjian |
---|---|
Тема | Compile failure in CVS |
Дата | |
Msg-id | 200207290255.g6T2t3v10748@candle.pha.pa.us обсуждение исходный текст |
Ответы |
Re: Compile failure in CVS
(Håkon Hansen <hha@mkt.no>)
|
Список | pgsql-jdbc |
I am seeing the following jdbc compile errors in current CVS. I am running: $ java -version java version "donn:01.02.00-14:56" Classic VM (build donn:01.02.00-14:56, native threads, nojit) Any ideas on a fix? -- Bruce Momjian | http://candle.pha.pa.us 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 gmake[3]: Leaving directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/python' gmake[3]: Entering directory `/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc' /usr/local/bin/ant -buildfile ./build.xml all \ -Dmajor=7 -Dminor=3 -Dfullversion=7.3devel -Ddef_pgport=5432 -Denable_debug=no Buildfile: ./build.xml all: prepare: check_versions: driver: [echo] Configured build for the JDBC2 edition driver compile: [javac] Compiling 5 source files to /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/build [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java:13: Themethod org.postgresql.jdbc2.Statement getStatement() declared in class org.postgresql.jdbc2.AbstractJdbc2ResultSet cannotoverride the method of the same signature declared in interface java.sql.ResultSet. They must have the same returntype. [javac] public class Jdbc2ResultSet extends org.postgresql.jdbc2.AbstractJdbc2ResultSet implements java.sql.ResultSet [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java:49: Invalid castfrom org.postgresql.jdbc2.ResultSet to org.postgresql.jdbc2.AbstractJdbc2ResultSet. [javac] this.rawString = ((AbstractJdbc2ResultSet)rs).getFixedString(idx); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2Connection.java:14:class org.postgresql.jdbc2.Jdbc2Connectionmust be declared abstract. It does not define java.sql.ResultSet getResultSet(java.sql.Statement,org.postgresql.Field[], java.util.Vector, java.lang.String, int) from class org.postgresql.jdbc1.AbstractJdbc1Connection. [javac] public class Jdbc2Connection extends org.postgresql.jdbc2.AbstractJdbc2Connection implements java.sql.Connection [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2Connection.java:14:class org.postgresql.jdbc2.Jdbc2Connectionmust be declared abstract. It does not define java.sql.ResultSet getResultSet(java.sql.Statement,org.postgresql.Field[], java.util.Vector, java.lang.String, int, long, boolean) from classorg.postgresql.jdbc1.AbstractJdbc1Connection. [javac] public class Jdbc2Connection extends org.postgresql.jdbc2.AbstractJdbc2Connection implements java.sql.Connection [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:221: Incompatibletype for constructor. Explicit cast needed to convert java.sql.ResultSet to org.postgresql.jdbc2.ResultSet. [javac] return (java.sql.Array) new org.postgresql.jdbc2.Array( connection, i, fields[i - 1], (java.sql.ResultSet)this ); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:382: Incompatibletype for return. Explicit cast needed to convert java.sql.Statement to org.postgresql.jdbc2.Statement. [javac] return statement; [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:499: Incompatibletype for =. Explicit cast needed to convert java.sql.PreparedStatement to org.postgresql.jdbc2.PreparedStatement. [javac] deleteStatement = ((java.sql.Connection) connection).prepareStatement(deleteSQL.toString()); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:549: Incompatibletype for =. Explicit cast needed to convert java.sql.PreparedStatement to org.postgresql.jdbc2.PreparedStatement. [javac] insertStatement = ((java.sql.Connection) connection).prepareStatement(insertSQL.toString()); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:563: Invalidcast from org.postgresql.jdbc2.PreparedStatement to org.postgresql.jdbc2.AbstractJdbc2Statement. [javac] long insertedOID = ((AbstractJdbc2Statement) insertStatement).getLastOID(); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:915: Incompatibletype for =. Explicit cast needed to convert java.sql.PreparedStatement to org.postgresql.jdbc2.PreparedStatement. [javac] selectStatement = ((java.sql.Connection) connection).prepareStatement(selectSQL.toString()); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:983: Incompatibletype for =. Explicit cast needed to convert java.sql.PreparedStatement to org.postgresql.jdbc2.PreparedStatement. [javac] updateStatement = ((java.sql.Connection) connection).prepareStatement(updateSQL.toString()); [javac] ^ [javac] /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java:51: Invalidcast from org.postgresql.jdbc2.AbstractJdbc2Statement to org.postgresql.jdbc2.Statement. [javac] ((AbstractJdbc2ResultSet)result).setStatement((Statement)this); [javac] ^ [javac] 12 errors BUILD FAILED /usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/interfaces/jdbc/./build.xml:85: Compile failed, messages should have beenprovided. Total time: 9 seconds
В списке pgsql-jdbc по дате отправления: