Re: cannot build current cvs

From: Kris Jurka <books(at)ejurka(dot)com>
To: Dave Cramer <Dave(at)micro-automation(dot)net>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: cannot build current cvs
Date: 2003-02-05 06:22:20
Message-ID: Pine.LNX.4.33.0302050115110.27245-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 4 Feb 2003, Dave Cramer wrote:

> No, I didn't since you mentioned that his changes would break 1.1
> compiles?

My comments with regard to jdk1.1 were for sorting the results of
getTypeInfo in org.postgresql.jdbc1.AbstractJdbc1DatabaseMetaData.

The changes to org.postgresql.jdbc3.AbstractJdbc3DatabaseMetaData include

public int getDatabaseMajorVersion() throws SQLException
{
return connection.getServerMajorVersion();
}

public int getDatabaseMinorVersion() throws SQLException
{
return connection.getServerMinorVersion();
}

This requires the addition of the getServerMajorVersion and
getServerMinorVersion methods to the Connection class. Perhaps they
should be added to the AbstractJdbc3Connection class rather than
AbstractJdbc1Connection class, but as things stand the driver will not
build for jdk1.4

Kris Jurka

> Dave
> On Tue, 2003-02-04 at 21:22, Kris Jurka wrote:
> > It appears you committed only part of Oliver Jowett's patch for JDBC3
> > methods, so a compile fails for jdk1.4. You did not commit the changes
> > for org.postgresql.jdbc1.AbstractJdbc1Connection
> >
> > Kris Jurka
> >
> >
> > On 4 Feb 2003, Dave Cramer wrote:
> >
> > > Michael,
> > >
> > > Do you have an old postgres.jar in the classpath somewhere?
> > >
> > > DAve
> > > On Tue, 2003-02-04 at 21:07, Michael Adler wrote:
> > > > I cannot build the driver from current CVS sources. Any suggestions?
> > > >
> > > > thanks.
> > > >
> > > >
> > > >
> > > >
> > > > adler(at)vision2:~/work/pgsql/src/interfaces/jdbc$ cvs update -CAPd && make clean && make
> > > > ? build
> > > > ? build.properties
> > > > ? jars
> > > > ? typescript
> > > > ? org/postgresql/Driver.java
> > > > cvs server: Updating .
> > > > cvs server: Updating example
> > > > cvs server: Updating example/corba
> > > > cvs server: Updating org
> > > > cvs server: Updating org/postgresql
> > > > cvs server: Updating org/postgresql/core
> > > > cvs server: Updating org/postgresql/fastpath
> > > > cvs server: Updating org/postgresql/geometric
> > > > cvs server: Updating org/postgresql/jdbc1
> > > > cvs server: Updating org/postgresql/jdbc2
> > > > cvs server: Updating org/postgresql/jdbc2/optional
> > > > cvs server: Updating org/postgresql/jdbc3
> > > > cvs server: Updating org/postgresql/largeobject
> > > > cvs server: Updating org/postgresql/test
> > > > cvs server: Updating org/postgresql/test/jdbc2
> > > > cvs server: Updating org/postgresql/test/jdbc2/optional
> > > > cvs server: Updating org/postgresql/test/jdbc3
> > > > cvs server: Updating org/postgresql/test/util
> > > > cvs server: Updating org/postgresql/util
> > > > cvs server: Updating org/postgresql/xa
> > > > cvs server: Updating postgresql
> > > > cvs server: Updating postgresql/fastpath
> > > > cvs server: Updating postgresql/geometric
> > > > cvs server: Updating postgresql/jdbc1
> > > > cvs server: Updating postgresql/jdbc2
> > > > cvs server: Updating postgresql/largeobject
> > > > cvs server: Updating postgresql/util
> > > > cvs server: Updating utils
> > > > /usr/bin/ant -buildfile ./build.xml clean_all
> > > > Buildfile: ./build.xml
> > > >
> > > > clean:
> > > > [delete] Deleting directory /home/adler/work/pgsql/src/interfaces/jdbc/build
> > > > [delete] Deleting directory /home/adler/work/pgsql/src/interfaces/jdbc/jars
> > > > [delete] Deleting: /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java
> > > >
> > > > clean_all:
> > > > [delete] Deleting: /home/adler/work/pgsql/src/interfaces/jdbc/build.properties
> > > >
> > > > BUILD SUCCESSFUL
> > > > Total time: 2 seconds
> > > > echo "# This file was created by 'make build.properties'." > build.properties
> > > > echo major=7 >> build.properties
> > > > echo minor=4 >> build.properties
> > > > echo fullversion=7.4devel >> build.properties
> > > > echo def_pgport=5432 >> build.properties
> > > > echo enable_debug=no >> build.properties
> > > > /usr/bin/ant -buildfile ./build.xml all
> > > > Buildfile: ./build.xml
> > > >
> > > > all:
> > > >
> > > > prepare:
> > > > [mkdir] Created dir: /home/adler/work/pgsql/src/interfaces/jdbc/build
> > > > [mkdir] Created dir: /home/adler/work/pgsql/src/interfaces/jdbc/jars
> > > >
> > > > check_versions:
> > > >
> > > > check_driver:
> > > >
> > > > driver:
> > > > [copy] Copying 1 file to /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql
> > > > [echo] Configured build for the JDBC2 edition driver
> > > >
> > > > compile:
> > > > [javac] Compiling 56 source files to /home/adler/work/pgsql/src/interfaces/jdbc/build
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java:26: reference to ResultSet is ambiguous, both class org.postgresql.ResultSet in org.postgresql and class java.sql.ResultSet in java.sql match
> > > > [javac] public static ResultSet execute (String[] p_sqlFrags,
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:239: 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] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:417: incompatible types
> > > > [javac] found : java.sql.Statement
> > > > [javac] required: org.postgresql.jdbc2.Statement
> > > > [javac] return statement;
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:557: incompatible types
> > > > [javac] found : java.sql.PreparedStatement
> > > > [javac] required: org.postgresql.jdbc2.PreparedStatement
> > > > [javac] deleteStatement = ((java.sql.Connection) connection).prepareStatement(deleteSQL.toString());
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:616: incompatible types
> > > > [javac] found : java.sql.PreparedStatement
> > > > [javac] required: org.postgresql.jdbc2.PreparedStatement
> > > > [javac] insertStatement = ((java.sql.Connection) connection).prepareStatement(insertSQL.toString());
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:636: inconvertible types
> > > > [javac] found : org.postgresql.jdbc2.PreparedStatement
> > > > [javac] required: org.postgresql.jdbc2.AbstractJdbc2Statement
> > > > [javac] long insertedOID = ((AbstractJdbc2Statement) insertStatement).getLastOID();
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:950: incompatible types
> > > > [javac] found : java.sql.PreparedStatement
> > > > [javac] required: org.postgresql.jdbc2.PreparedStatement
> > > > [javac] selectStatement = ((java.sql.Connection) connection).prepareStatement(selectSQL.toString());
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:1038: incompatible types
> > > > [javac] found : java.sql.PreparedStatement
> > > > [javac] required: org.postgresql.jdbc2.PreparedStatement
> > > > [javac] updateStatement = ((java.sql.Connection) connection).prepareStatement(updateSQL.toString());
> > > > [javac] ^
> > > > [javac] /home/adler/work/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] /home/adler/work/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] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java:16: cannot resolve symbol
> > > > [javac] symbol : constructor Jdbc2ResultSet (org.postgresql.jdbc2.Jdbc2CallableStatement,org.postgresql.Field[],java.util.Vector,java.lang.String,int,long,boolean)
> > > > [javac] location: class org.postgresql.jdbc2.Jdbc2ResultSet
> > > > [javac] return new Jdbc2ResultSet(this, fields, tuples, status, updateCount, insertOID, binaryCursor);
> > > > [javac] ^
> > > > [javac] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java:16: cannot resolve symbol
> > > > [javac] symbol : constructor Jdbc2ResultSet (org.postgresql.jdbc2.Jdbc2PreparedStatement,org.postgresql.Field[],java.util.Vector,java.lang.String,int,long,boolean)
> > > > [javac] location: class org.postgresql.jdbc2.Jdbc2ResultSet
> > > > [javac] return new Jdbc2ResultSet(this, fields, tuples, status, updateCount, insertOID, binaryCursor);
> > > > [javac] ^
> > > > [javac] /home/adler/work/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] /home/adler/work/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2Statement.java:21: cannot resolve symbol
> > > > [javac] symbol : constructor Jdbc2ResultSet (org.postgresql.jdbc2.Jdbc2Statement,org.postgresql.Field[],java.util.Vector,java.lang.String,int,long,boolean)
> > > > [javac] location: class org.postgresql.jdbc2.Jdbc2ResultSet
> > > > [javac] return new Jdbc2ResultSet(this, fields, tuples, status, updateCount, insertOID, binaryCursor);
> > > > [javac] ^
> > > > [javac] Note: Some input files use or override a deprecated API.
> > > > [javac] Note: Recompile with -deprecation for details.
> > > > [javac] 14 errors
> > > >
> > > > BUILD FAILED
> > > > file:/home/adler/work/pgsql/src/interfaces/jdbc/build.xml:106: Compile failed; see the compiler error output for details.
> > > >
> > > > Total time: 5 seconds
> > > > make: *** [all] Error 1
> > > >
> > > >
> > > > adler(at)vision2:~/work/pgsql/src/interfaces/jdbc$ ant -version
> > > > Apache Ant version 1.5.1 compiled on October 23 2002
> > > > adler(at)vision2:~/work/pgsql/src/interfaces/jdbc$
> > > > adler(at)vision2:~/work/pgsql/src/interfaces/jdbc$ java -version
> > > > java version "1.3.1"
> > > > Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-02b-FCS)
> > > > Java HotSpot(TM) Client VM (build Blackdown-1.3.1_02b-FCS, mixed mode)
> > > >
> > > >
> > > > ---------------------------(end of broadcast)---------------------------
> > > > TIP 2: you can get off all lists at once with the unregister command
> > > > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> > > --
> > > Dave Cramer <Dave(at)micro-automation(dot)net>
> > >
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
> > >
> >
> --
> Dave Cramer <Dave(at)micro-automation(dot)net>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2003-02-05 11:14:31 Re: cannot build current cvs
Previous Message J M Okomba 2003-02-05 05:18:27 Re: problem with the Tomcat