BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with ecj - Mailing list pgsql-bugs

From Bernhard Rosenkraenzer
Subject BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with ecj
Date
Msg-id 20060129122843.92257F0ACA@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with
Re: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2220
Logged by:          Bernhard Rosenkraenzer
Email address:      bero@arklinux.org
PostgreSQL version: 8.1.2
Operating system:   Linux (Ark Linux 2006.1-pre)
Description:        PostgreSQL-JDBC 8.1-404 fails to compile with ecj
Details:

PostgreSQL-JDBC 8.1-404 fails to compile (ecj bytecode compiler w/ gij 4.1
JDK):

    [javac] 1. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 17)
    [javac]     public class Jdbc3gArray extends
org.postgresql.jdbc2.AbstractJdbc2Array implements java.sql.Array
    [javac]                  ^^^^^^^^^^^
    [javac] The type Jdbc3gArray must implement the inherited abstract
method Array.getArray(long, int, Map)
    [javac] ----------
    [javac] 2. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 17)
    [javac]     public class Jdbc3gArray extends
org.postgresql.jdbc2.AbstractJdbc2Array implements java.sql.Array
    [javac]                  ^^^^^^^^^^^
    [javac] The type Jdbc3gArray must implement the inherited abstract
method Array.getArray(Map)
    [javac] ----------
    [javac] 3. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 17)
    [javac]     public class Jdbc3gArray extends
org.postgresql.jdbc2.AbstractJdbc2Array implements java.sql.Array
    [javac]                  ^^^^^^^^^^^
    [javac] The type Jdbc3gArray must implement the inherited abstract
method Array.getResultSet(long, int, Map)
    [javac] ----------
    [javac] 4. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 17)
    [javac]     public class Jdbc3gArray extends
org.postgresql.jdbc2.AbstractJdbc2Array implements java.sql.Array
    [javac]                  ^^^^^^^^^^^
    [javac] The type Jdbc3gArray must implement the inherited abstract
method Array.getResultSet(Map)
    [javac] ----------
    [javac] 5. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 24)
    [javac]     public Object getArray(Map < String, Class < ? >> map)
throws SQLException
    [javac]                                          ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] 6. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 29)
    [javac]     public Object getArray(long index, int count, Map < String,
Class < ? >> map) throws SQLException
    [javac]
^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] 7. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 34)
    [javac]     public ResultSet getResultSet(Map < String, Class < ? >>
map) throws SQLException
    [javac]                                                 ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] 8. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gA
rray.java
    [javac]  (at line 39)
    [javac]     public ResultSet getResultSet(long index, int count, Map <
String, Class < ? >> map)
    [javac] throws SQLException
    [javac]
      ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] ----------
    [javac] 9. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gC
allableStatement.java
    [javac]  (at line 15)
    [javac]     class Jdbc3gCallableStatement extends
Jdbc3gPreparedStatement implements CallableStatement
    [javac]           ^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The type Jdbc3gCallableStatement must implement the inherited
abstract method CallableStatement.getObject(String, Map)
    [javac] ----------
    [javac] 10. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gC
allableStatement.java
    [javac]  (at line 15)
    [javac]     class Jdbc3gCallableStatement extends
Jdbc3gPreparedStatement implements CallableStatement
    [javac]           ^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The type Jdbc3gCallableStatement must implement the inherited
abstract method CallableStatement.getO
    [javac] bject(int, Map)
    [javac] ----------
    [javac] 11. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gC
allableStatement.java
    [javac]  (at line 26)
    [javac]     public Object getObject(int i, Map < String, Class < ? >>
map) throws SQLException
    [javac]
    [javac]                                             ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] 12. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gC
allableStatement.java
    [javac]  (at line 31)
    [javac]     public Object getObject(String s, Map < String, Class < ? >>
map) throws SQLException
    [javac]                                                     ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] ----------
    [javac] 13. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gC
onnection.java
    [javac]  (at line 21)
    [javac]     public class Jdbc3gConnection extends
org.postgresql.jdbc3.AbstractJdbc3Connection im
    [javac] plements java.sql.Connection
    [javac]                  ^^^^^^^^^^^^^^^^
    [javac] The type Jdbc3gConnection must implement the inherited abstract
method Connection.setTypeMap(Map)
    [javac] ----------
    [javac] 14. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gC
onnection.java
    [javac]  (at line 56)
    [javac]     public void setTypeMap(Map < String, Class < ? >> map)
throws SQLException
    [javac]                                          ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] ----------
    [javac] 15. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gR
esultSet.java
    [javac]  (at line 23)
    [javac]     public class Jdbc3gResultSet extends
org.postgresql.jdbc3.AbstractJdbc3ResultSet implements java.sql.ResultSet
    [javac]                  ^^^^^^^^^^^^^^^
    [javac] The type Jdbc3gResultSet must implement the inherited abstract
method ResultSet.getObject(String, Map)
    [javac] ----------
    [javac] 16. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gR
esultSet.java
    [javac]  (at line 23)
    [javac]     public class Jdbc3gResultSet extends
org.postgresql.jdbc3.AbstractJdbc3ResultSet implements java.sql.ResultSet
    [javac]                  ^^^^^^^^^^^^^^^
    [javac] The type Jdbc3gResultSet must implement the inherited abstract
method ResultSet.getObject(int, Map)
    [javac] ----------
    [javac] 17. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gR
esultSet.java
    [javac]  (at line 63)
    [javac]     public Object getObject(String s, Map < String, Class < ? >>
map) throws SQLException
    [javac]                                                     ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>
    [javac] ----------
    [javac] 18. ERROR in
/usr/src/ark/BUILD/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gR
esultSet.java
    [javac]  (at line 68)
    [javac]     public Object getObject(int i, Map < String, Class < ? >>
map) throws SQLException
    [javac]
    [javac]                                             ^^^^^
    [javac] The type Class is not generic; it cannot be parameterized with
arguments <?>


The ones about Class not being generic are probably just GNU classpath
lagging a bit behind the Java specs, but the abstract method errors look
like genuine bugs.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug with aggregate + multi column index + index_scan
Next
From: "Jim B"
Date:
Subject: BUG #2222: Can not reinstall due to account errors