Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117052 - jdbc3-postgresql-8.1_p404 fails with JDK 1.5
Summary: jdbc3-postgresql-8.1_p404 fails with JDK 1.5
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-29 01:13 UTC by Dead Schorsch
Modified: 2007-09-22 23:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dead Schorsch 2005-12-29 01:13:15 UTC
The JDBC driver for postgresql fails to build using Java 1.5 aka Tiger, due to missing compiler flag:

compile:
    [javac] Compiling 129 source files to /var/tmp/portage/jdbc3-postgresql-8.1_ p404/work/postgresql-jdbc-8.1-404.src/build

    [javac] Found 1 semantic error compiling "/var/tmp/portage/jdbc3-postgresql- 8.1_p404/work/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gConnection .java":

    [javac]     56.     public void setTypeMap(Map < String, Class < ? >> map) t hrows SQLException
    [javac]                                        ^--------------------^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)

    [javac] Issued 6 semantic warnings compiling "/var/tmp/portage/jdbc3-postgre sql-8.1_p404/work/postgresql-jdbc-8.1-404.src/org/postgresql/util/PGInterval.jav a":

    [javac]     95.         int    years   = 0;
    [javac]                        ^---^
    [javac] *** Semantic Warning: Local "years" shadows a field of the same name  in "org.postgresql.util.PGInterval".


    [javac]     96.         int    months  = 0;
    [javac]                        ^----^
    [javac] *** Semantic Warning: Local "months" shadows a field of the same nam e in "org.postgresql.util.PGInterval".


    [javac]     97.         int    days    = 0;
    [javac]                        ^--^
    [javac] *** Semantic Warning: Local "days" shadows a field of the same name in "org.postgresql.util.PGInterval".


    [javac]     98.         int    hours   = 0;
    [javac]                        ^---^
    [javac] *** Semantic Warning: Local "hours" shadows a field of the same name  in "org.postgresql.util.PGInterval".


    [javac]     99.         int    minutes = 0;
    [javac]                        ^-----^
    [javac] *** Semantic Warning: Local "minutes" shadows a field of the same na me in "org.postgresql.util.PGInterval".


    [javac]    100.         double seconds = 0;
    [javac]                        ^-----^
    [javac] *** Semantic Warning: Local "seconds" shadows a field of the same na me in "org.postgresql.util.PGInterval".

    [javac] Found 2 semantic errors compiling "/var/tmp/portage/jdbc3-postgresql -8.1_p404/work/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gCallableS tatement.java":

    [javac]     26.     public Object getObject(int i, Map < String, Class < ? > > map) throws SQLException
    [javac]                                                ^-------------------- ^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)


    [javac]     31.     public Object getObject(String s, Map < String, Class < ? >> map) throws SQLException
    [javac]                                                   ^----------------- ---^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)

    [javac] Found 2 semantic errors compiling "/var/tmp/portage/jdbc3-postgresql -8.1_p404/work/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gResultSet .java":

    [javac]     63.     public Object getObject(String s, Map < String, Class < ? >> map) throws SQLException
    [javac]                                                   ^----------------- ---^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)


    [javac]     68.     public Object getObject(int i, Map < String, Class < ? > > map) throws SQLException
    [javac]                                                ^-------------------- ^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)

    [javac] Found 4 semantic errors compiling "/var/tmp/portage/jdbc3-postgresql -8.1_p404/work/postgresql-jdbc-8.1-404.src/org/postgresql/jdbc3g/Jdbc3gArray.jav a":

    [javac]     24.     public Object getArray(Map < String, Class < ? >> map) t hrows SQLException
    [javac]                                        ^--------------------^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)


    [javac]     29.     public Object getArray(long index, int count, Map < Stri ng, Class < ? >> map) throws SQLException
    [javac]                                                               ^----- ---------------^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)


    [javac]     34.     public ResultSet getResultSet(Map < String, Class < ? >>  map) throws SQLException
    [javac]                                               ^--------------------^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)


    [javac]     39.     public ResultSet getResultSet(long index, int count, Map  < String, Class < ? >> map) throws SQLException
    [javac]  ^--------------------^
    [javac] *** Semantic Error: Using type arguments to access generic types req uires the use of "-source 1.5" or greater. Compilation will continue using the r aw type "java.util.Map", but no class file will be emitted.(not yet implemented)

BUILD FAILED
/var/tmp/portage/jdbc3-postgresql-8.1_p404/work/postgresql-jdbc-8.1-404.src/buil d.xml:111: Compile failed; see the compiler error output for details.

Total time: 5 seconds
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-29 04:43:36 UTC
JDK 1.5 is package.masked for a reason...
Comment 2 Dead Schorsch 2005-12-30 12:03:29 UTC
Can you provide me a hint, where java compiler options are set so I can fix it locally?
Comment 3 Dead Schorsch 2006-02-15 03:45:25 UTC
Invalid.