JDBC does not compile

Started by Tatsuo Ishiiover 23 years ago3 messages
#1Tatsuo Ishii
t-ishii@sra.co.jp

It seems JDBC in current does not compile with jdk1.3.0. Is this a
intended change or am I missing something?

:
:
[javac] /usr/local/src/pgsql/current/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
--
Tatsuo Ishii

#2Dave Cramer
dave@fastcrypt.com
In reply to: Tatsuo Ishii (#1)
Re: JDBC does not compile

Make sure you have a clean copy of the source, Barry has done an
extensive re-organization to remove the duplicate code between jdbc1,
and jdbc2, to prepare for jdbc3.

It compiles clean on my machine using jdk1.3.1

Dave

Show quoted text

On Sun, 2002-07-28 at 22:12, Tatsuo Ishii wrote:

It seems JDBC in current does not compile with jdk1.3.0. Is this a
intended change or am I missing something?

:
:
[javac] /usr/local/src/pgsql/current/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
--
Tatsuo Ishii

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

#3Tatsuo Ishii
t-ishii@sra.co.jp
In reply to: Dave Cramer (#2)
Re: JDBC does not compile

Make sure you have a clean copy of the source, Barry has done an
extensive re-organization to remove the duplicate code between jdbc1,
and jdbc2, to prepare for jdbc3.

It compiles clean on my machine using jdk1.3.1

It turns out that my class path did bad thing. After unset the class
path, I succeeded in compiling. Thanks.
--
Tatsuo Ishii