Re: JDBC2 compilation errors w/ top-of-tree CVS (Darwin) - Mailing list pgsql-jdbc
From | Drew Wilson |
---|---|
Subject | Re: JDBC2 compilation errors w/ top-of-tree CVS (Darwin) |
Date | |
Msg-id | 18C1295A-A6F6-11D6-8DD3-00039362D52E@speakeasy.net Whole thread Raw |
In response to | Re: JDBC2 compilation errors w/ top-of-tree CVS (Darwin) (Dave Cramer <Dave@micro-automation.net>) |
List | pgsql-jdbc |
Hmmm... well, I'm building this from a fresh copy - brand new checkout and configure. So there shouldn't be any old class files in the pgsql tree... I get the same result if I do a "make clean;make" or "make distclean; ./configure --with-java; make" as I did with "./configure --with-java;make" . FYI - I am using Ant 1.5. On Saturday, August 3, 2002, at 05:20 AM, Dave Cramer wrote: > do an ant clean and then rebuild, you have old class files laying around > > Dave > On Sat, 2002-08-03 at 04:52, Drew Wilson wrote: >> I'm getting compilation errors trying to build the jdbc driver from the >> latest CVS sources (v7.3deve1?) I grabbed this morning. >> >> I'm building on Mac OS X 10.1.5 using Java JDK 1.3.1. >> >> I'm not real up-to-speed on resolving Java issues, so I was wondering if >> someone could point out what might be going wrong below. (My guess is >> javac can't find Array?) >> >> Thanks, >> >> Drew >> >> Here are the log errors........ >> >> prepare: >> >> check_versions: >> >> driver: >> [available] DEPRECATED - <available> used to override an existing >> property. >> [available] Build file should not reuse the same property name for >> different values. >> [echo] Configured build for the JDBC2 edition driver >> >> compile: >> [javac] Compiling 24 source files to >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/build >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:221: cannot resolve symbol >> [javac] symbol : constructor Array >> (org.postgresql.PGConnection,int, >> org.postgresql.Field,java.sql.ResultSet) >> [javac] location: class org.postgresql.jdbc2.Array >> [javac] return (java.sql.Array) new org.postgresql.jdbc2.Array >> ( connection, i, fields[i - 1], (java.sql.ResultSet) this ); >> [javac] ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:382: incompatible types >> [javac] found : java.sql.Statement >> [javac] required: org.postgresql.jdbc2.Statement >> [javac] return statement; >> [javac] ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:499: incompatible types >> [javac] found : java.sql.PreparedStatement >> [javac] required: org.postgresql.jdbc2.PreparedStatement >> [javac] deleteStatement = ((java.sql.Connection) >> connection).prepareStatement(deleteSQL.toString()); >> [javac] >> ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:549: incompatible types >> [javac] found : java.sql.PreparedStatement >> [javac] required: org.postgresql.jdbc2.PreparedStatement >> [javac] insertStatement = ((java.sql.Connection) >> connection).prepareStatement(insertSQL.toString()); >> [javac] >> ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:563: inconvertible types >> [javac] found : org.postgresql.jdbc2.PreparedStatement >> [javac] required: org.postgresql.jdbc2.AbstractJdbc2Statement >> [javac] long insertedOID = ((AbstractJdbc2Statement) >> insertStatement).getLastOID(); >> [javac] ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:915: incompatible types >> [javac] found : java.sql.PreparedStatement >> [javac] required: org.postgresql.jdbc2.PreparedStatement >> [javac] selectStatement = ((java.sql.Connection) >> connection).prepareStatement(selectSQL.toString()); >> [javac] >> ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2ResultSet. >> java:983: incompatible types >> [javac] found : java.sql.PreparedStatement >> [javac] required: org.postgresql.jdbc2.PreparedStatement >> [javac] updateStatement = ((java.sql.Connection) >> connection).prepareStatement(updateSQL.toString()); >> [javac] >> ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> AbstractJdbc2Statement. >> java:51: inconvertible types >> [javac] found : org.postgresql.jdbc2.AbstractJdbc2Statement >> [javac] required: org.postgresql.jdbc2.Statement >> [javac] >> ((AbstractJdbc2ResultSet)result).setStatement((Statement)this); >> [javac] >> ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> Array. >> java:49: inconvertible types >> [javac] found : org.postgresql.jdbc2.ResultSet >> [javac] required: org.postgresql.jdbc2.AbstractJdbc2ResultSet >> [javac] this.rawString = >> ((AbstractJdbc2ResultSet)rs).getFixedString(idx); >> [javac] ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> Jdbc2Connection. >> java:14: org.postgresql.jdbc2.Jdbc2Connection should be declared >> abstract; >> it does not define >> getResultSet(java.sql.Statement,org.postgresql.Field[],java.util.Vector, >> java. >> lang.String,int) in org.postgresql.jdbc1.AbstractJdbc1Connection >> [javac] public class Jdbc2Connection extends >> org.postgresql.jdbc2.AbstractJdbc2Connection implements >> java.sql.Connection >> [javac] ^ >> [javac] >> /Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ >> Jdbc2ResultSet. >> java:13: getStatement() in org.postgresql.jdbc2.AbstractJdbc2ResultSet >> cannot implement getStatement() in java.sql.ResultSet; attempting to use >> incompatible return type >> [javac] found : org.postgresql.jdbc2.Statement >> [javac] required: java.sql.Statement >> [javac] public class Jdbc2ResultSet extends >> org.postgresql.jdbc2.AbstractJdbc2ResultSet implements java.sql.ResultSet >> [javac] ^ >> [javac] Note: Some input files use or override a deprecated API. >> [javac] Note: Recompile with -deprecation for details. >> [javac] 11 errors >> >> BUILD FAILED >> file:/Users/drew/taoapps/tools/pgsql/src/interfaces/jdbc/build.xml:85: >> Compile failed; see the compiler error output for details. >> >> Total time: 33 seconds >> gnumake[4]: *** [all] Error 1 >> gnumake[3]: *** [all] Error 2 >> gnumake[2]: *** [all] Error 2 >> gnumake[1]: *** [all] Error 2 >> make: *** [postgres] Error 2 >> >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 3: if posting/reading through Usenet, please send an appropriate >> subscribe-nomail command to majordomo@postgresql.org so that your >> message can get through to the mailing list cleanly >> >> > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >
pgsql-jdbc by date: