Re: cannot build current cvs - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: cannot build current cvs
Date
Msg-id 1044411891.1121.69.camel@inspiron.cramers
Whole thread Raw
In response to Re: cannot build current cvs  (Kris Jurka <books@ejurka.com>)
Responses Re: cannot build current cvs
List pgsql-jdbc
No, I didn't since you mentioned that his changes would break 1.1
compiles?

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@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
ResultSetis 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:
cannotresolve 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:
incompatibletypes 
> > >     [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:
incompatibletypes 
> > >     [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:
incompatibletypes 
> > >     [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:
inconvertibletypes 
> > >     [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:
incompatibletypes 
> > >     [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:
incompatibletypes 
> > >     [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:
inconvertibletypes 
> > >     [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:
cannotresolve 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:
cannotresolve 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;
attemptingto 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
resolvesymbol 
> > >     [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@vision2:~/work/pgsql/src/interfaces/jdbc$ ant -version
> > > Apache Ant version 1.5.1 compiled on October 23 2002
> > > adler@vision2:~/work/pgsql/src/interfaces/jdbc$
> > > adler@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@postgresql.org)
> > --
> > Dave Cramer <Dave@micro-automation.net>
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> >
>
--
Dave Cramer <Dave@micro-automation.net>


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: cannot build current cvs
Next
From: Barry Lind
Date:
Subject: Re: 7.3 compability, select * from myfunc();