Compile Error on 7.1.3 - Mailing list pgsql-jdbc

From James Kelty
Subject Compile Error on 7.1.3
Date
Msg-id MDEDIKPCLCIKDGEMDJGMMEGICJAA.jamesk@everbase.net
Whole thread Raw
Responses Re: Compile Error on 7.1.3  (Dave Cramer <Dave@micro-automation.net>)
List pgsql-jdbc
Hello!

Sorry if this post is REALLY stale. I looked around in Google, and the
pgsql-jdbc archives, but I couldn't find an
answer to my problem. Here is my system environment:

RedHat      7.2
PostgreSQL  7.1.3
Sun JDK    1.3.1_01
Jakarta Ant 1.4.1


Here is the compile error I am getting...

make[3]: Entering directory `/var/tmp/postgresql-7.1.3/src/interfaces/jdbc'
/usr/local/ant/bin//ant -buildfile
../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1.3 -Ddef_pgport=5432
Buildfile: ../../../build.xml

jar:

call:

prepare:
    [mkdir] Created dir: /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build
    [mkdir] Created dir: /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/jars

check_versions:

driver:
     [copy] Copying 1 file to
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC2 Enterprise edition driver.

compile:
    [javac] Compiling 58 source files to
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build
    [javac]
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedS
tatement.java:32: org.postgresql.jdbc2.PreparedStatement should be declared
abstract; it does not define setArray(int,java.sql.Array) in
org.postgresql.jdbc2.PreparedStatement
    [javac] public class PreparedStatement extends Statement implements
java.sql.PreparedStatement
    [javac]        ^
    [javac]
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/CallableS
tatement.java:42: getArray(int) in org.postgresql.jdbc2.CallableStatement
cannot implement getArray(int) in java.sql.CallableStatement; attempting to
use incompatible return type
    [javac] found   : org.postgresql.jdbc2.Array
    [javac] required: java.sql.Array
    [javac] public class CallableStatement extends
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
    [javac]        ^
    [javac]
/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet
.java:60: getArray(java.lang.String) in org.postgresql.jdbc2.ResultSet
cannot implement getArray(java.lang.String) in java.sql.ResultSet;
attempting to use incompatible return type
    [javac] found   : org.postgresql.jdbc2.Array
    [javac] required: java.sql.Array
    [javac] public class ResultSet extends org.postgresql.ResultSet
implements java.sql.ResultSet
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 3 errors

BUILD FAILED

/var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99: Compile failed,
messages should have been provided.

Total time: 6 seconds
make[3]: *** [all] Error 1
make[3]: Leaving directory `/var/tmp/postgresql-7.1.3/src/interfaces/jdbc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/postgresql-7.1.3/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/postgresql-7.1.3/src'
make: *** [all] Error 2


Any and all help is very much welcome! Thank you!

-James

James Kelty
Sr. Unix Systems Administrator
Everbase Systems
541.488.0801
jamesk@everbase.net


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: NullPointerException when calling executeQuery() - why?
Next
From: Dave Cramer
Date:
Subject: Re: Compile Error on 7.1.3