Thread: jdbc4 implementation errors building

jdbc4 implementation errors building

From
Dave Cramer
Date:
I just tried building on java 6 and have the following errors ?

/Users/davec/projects/jdbc/pghead/org/postgresql/ds/
PGConnectionPoolDataSource.java:39:
org.postgresql.ds.PGConnectionPoolDataSource is not abstract and does
not override abstract method getQueryObjectGenerator() in
javax.sql.CommonDataSource
     [javac] public class PGConnectionPoolDataSource extends
BaseDataSource implements Serializable, ConnectionPoolDataSource
     [javac]        ^
     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/ds/
PGPoolingDataSource.java:42: org.postgresql.ds.PGPoolingDataSource is
not abstract and does not override abstract method
<T>createQueryObject(java.lang.Class<T>,javax.sql.DataSource) in
javax.sql.DataSource
     [javac] public class PGPoolingDataSource
     [javac]        ^
     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/ds/
PGSimpleDataSource.java:22: org.postgresql.ds.PGSimpleDataSource is
not abstract and does not override abstract method
<T>createQueryObject(java.lang.Class<T>,javax.sql.DataSource) in
javax.sql.DataSource
     [javac] public class PGSimpleDataSource
     [javac]        ^
     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/jdbc4/
Jdbc4Connection.java:21: org.postgresql.jdbc4.Jdbc4Connection is not
abstract and does not override abstract method <T>createQueryObject
(java.lang.Class<T>,java.sql.Connection) in java.sql.Connection
     [javac] public class Jdbc4Connection extends
AbstractJdbc4Connection implements java.sql.Connection
     [javac]        ^
     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/jdbc4/
Jdbc4DatabaseMetaData.java:13:
org.postgresql.jdbc4.Jdbc4DatabaseMetaData is not abstract and does
not override abstract method getFunctionParameters
(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
in java.sql.DatabaseMetaData
     [javac] public class Jdbc4DatabaseMetaData extends
AbstractJdbc4DatabaseMetaData implements java.sql.DatabaseMetaData
     [javac]        ^
     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/xa/
PGXADataSource.java:19: org.postgresql.xa.PGXADataSource is not
abstract and does not override abstract method getQueryObjectGenerator
() in javax.sql.CommonDataSource
     [javac] public class PGXADataSource extends BaseDataSource
implements Referenceable, XADataSource


any idea what's going on ?

Dave

Re: jdbc4 implementation errors building

From
Dave Cramer
Date:
Apparently this is an OSX issue, it built fine on linux

Dave
On 5-May-07, at 12:37 PM, Dave Cramer wrote:

> I just tried building on java 6 and have the following errors ?
>
> /Users/davec/projects/jdbc/pghead/org/postgresql/ds/
> PGConnectionPoolDataSource.java:39:
> org.postgresql.ds.PGConnectionPoolDataSource is not abstract and
> does not override abstract method getQueryObjectGenerator() in
> javax.sql.CommonDataSource
>     [javac] public class PGConnectionPoolDataSource extends
> BaseDataSource implements Serializable, ConnectionPoolDataSource
>     [javac]        ^
>     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/ds/
> PGPoolingDataSource.java:42: org.postgresql.ds.PGPoolingDataSource
> is not abstract and does not override abstract method
> <T>createQueryObject(java.lang.Class<T>,javax.sql.DataSource) in
> javax.sql.DataSource
>     [javac] public class PGPoolingDataSource
>     [javac]        ^
>     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/ds/
> PGSimpleDataSource.java:22: org.postgresql.ds.PGSimpleDataSource is
> not abstract and does not override abstract method
> <T>createQueryObject(java.lang.Class<T>,javax.sql.DataSource) in
> javax.sql.DataSource
>     [javac] public class PGSimpleDataSource
>     [javac]        ^
>     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/jdbc4/
> Jdbc4Connection.java:21: org.postgresql.jdbc4.Jdbc4Connection is
> not abstract and does not override abstract method
> <T>createQueryObject(java.lang.Class<T>,java.sql.Connection) in
> java.sql.Connection
>     [javac] public class Jdbc4Connection extends
> AbstractJdbc4Connection implements java.sql.Connection
>     [javac]        ^
>     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/jdbc4/
> Jdbc4DatabaseMetaData.java:13:
> org.postgresql.jdbc4.Jdbc4DatabaseMetaData is not abstract and does
> not override abstract method getFunctionParameters
> (java.lang.String,java.lang.String,java.lang.String,java.lang.String)
> in java.sql.DatabaseMetaData
>     [javac] public class Jdbc4DatabaseMetaData extends
> AbstractJdbc4DatabaseMetaData implements java.sql.DatabaseMetaData
>     [javac]        ^
>     [javac] /Users/davec/projects/jdbc/pghead/org/postgresql/xa/
> PGXADataSource.java:19: org.postgresql.xa.PGXADataSource is not
> abstract and does not override abstract method
> getQueryObjectGenerator() in javax.sql.CommonDataSource
>     [javac] public class PGXADataSource extends BaseDataSource
> implements Referenceable, XADataSource
>
>
> any idea what's going on ?
>
> Dave
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend