We have an application which uses postgresql 7.4.5.
Now when we moved to Java 1.6, we are seeing lots of jdbc driver related compilation issues like shown at end of this email.
Question is can we just only upgrade jdbc driver alone or its better to move completely to a new postgres version. ?
Are there any docs that explain about how to migrate ?
thanks
Swayam
./org/postgresql/Driver.java:393: cannot find symbol
symbol : constructor Jdbc4Connection(java.lang.String,int,java.lang.String,java.lang.String,java.util.Properties,java.lang.String)
location: class org.postgresql.jdbc4.Jdbc4Connection
return new org.postgresql.jdbc4.Jdbc4Connection(host(props), port(props),
^
./org/postgresql/jdbc2/AbstractJdbc2Statement.java:734: cannot find symbol
symbol : method addTimerTask(java.util.TimerTask,int)
location: class org.postgresql.Driver
Driver.addTimerTask( cancelTimer, seconds * 1000);
^
./org/postgresql/jdbc3/Jdbc3Array.java:15: org.postgresql.jdbc3.Jdbc3Array is not abstract and does not override abstract method free() in java.sql.Array
public class Jdbc3Array extends org.postgresql.jdbc2.AbstractJdbc2Array implements java.sql.Array
^
./org/postgresql/jdbc3/Jdbc3Blob.java:13: org.postgresql.jdbc3.Jdbc3Blob is not abstract and does not override abstract method getBinaryStream(long,long) in java.sql.Blob
public class Jdbc3Blob extends org.postgresql.jdbc3.AbstractJdbc3Blob implements java.sql.Blob
^
./org/postgresql/jdbc3/Jdbc3Statement.java:19: org.postgresql.jdbc3.Jdbc3Statement is not abstract and does not override abstract method isPoolable() in java.sql.Statement
class Jdbc3Statement extends AbstractJdbc3Statement implements Statement
^
./org/postgresql/jdbc3/Jdbc3PreparedStatement.java:12: org.postgresql.jdbc3.Jdbc3PreparedStatement is not abstract and does not override abstract method setNClob(int,java.io.Reader) in java.sql.PreparedStatement
class Jdbc3PreparedStatement extends Jdbc3Statement implements PreparedStatement
^
./org/postgresql/jdbc3/Jdbc3CallableStatement.java:13: org.postgresql.jdbc3.Jdbc3CallableStatement is not abstract and does not override abstract method setNClob(java.lang.String,java.io.Reader) in java.sql.CallableStatement
class Jdbc3CallableStatement extends Jdbc3PreparedStatement implements CallableStatement
^
./org/postgresql/jdbc3/Jdbc3Connection.java:20: org.postgresql.jdbc3.Jdbc3Connection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection
public class Jdbc3Connection extends org.postgresql.jdbc3.AbstractJdbc3Connection implements java.sql.Connection
^
./org/postgresql/jdbc3/Jdbc3Clob.java:11: org.postgresql.jdbc3.Jdbc3Clob is not abstract and does not override abstract method getCharacterStream(long,long) in java.sql.Clob
public class Jdbc3Clob extends org.postgresql.jdbc3.AbstractJdbc3Clob implements java.sql.Clob
^
./org/postgresql/jdbc3/Jdbc3DatabaseMetaData.java:11: org.postgresql.jdbc3.Jdbc3DatabaseMetaData is not abstract and does not override abstract method getFunctionColumns(java.lang.String,java.lang.String,java.lang.String,java.lang.String) in java.sql.DatabaseMetaData
public class Jdbc3DatabaseMetaData extends org.postgresql.jdbc3.AbstractJdbc3DatabaseMetaData implements java.sql.DatabaseMetaData
^
./org/postgresql/jdbc3/Jdbc3ParameterMetaData.java:13: org.postgresql.jdbc3.Jdbc3ParameterMetaData is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
public class Jdbc3ParameterMetaData extends AbstractJdbc3ParameterMetaData implements ParameterMetaData {
^
./org/postgresql/jdbc3/Jdbc3ResultSet.java:21: org.postgresql.jdbc3.Jdbc3ResultSet is not abstract and does not override abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
public class Jdbc3ResultSet extends org.postgresql.jdbc3.AbstractJdbc3ResultSet implements java.sql.ResultSet
^
./org/postgresql/jdbc3/Jdbc3ResultSetMetaData.java:12: org.postgresql.jdbc3.Jdbc3ResultSetMetaData is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
public class Jdbc3ResultSetMetaData extends org.postgresql.jdbc2.AbstractJdbc2ResultSetMetaData implements java.sql.ResultSetMetaData
^
./org/postgresql/ssl/MakeSSL.java:63: cannot find symbol
symbol : method getHost()
location: class org.postgresql.core.PGStream
Socket newConnection = factory.createSocket(stream.getSocket(), stream.getHost(), stream.getPort(), true);
^
./org/postgresql/ssl/MakeSSL.java:63: cannot find symbol
symbol : method getPort()
location: class org.postgresql.core.PGStream
Socket newConnection = factory.createSocket(stream.getSocket(), stream.getHost(), stream.getPort(), true);