Thread: JDBC does not compile

JDBC does not compile

From
Tatsuo Ishii
Date:
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;
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] Note: Some input files use or override a deprecated API.   [javac] Note:
Recompilewith -deprecation for details.   [javac] 11 errors
 
--
Tatsuo Ishii


Re: JDBC does not compile

From
Dave Cramer
Date:
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
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;
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] 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)
> 
> 





Re: JDBC does not compile

From
Tatsuo Ishii
Date:
> 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