Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176775 - dev-java/jdbc-jaybird compile.xml does not respect source/target
Summary: dev-java/jdbc-jaybird compile.xml does not respect source/target
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 205262 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-02 09:22 UTC by Petteri Räty (RETIRED)
Modified: 2008-02-13 20:16 UTC (History)
2 users (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 Petteri Räty (RETIRED) gentoo-dev 2007-05-02 09:22:48 UTC
>>> Compiling source in /var/tmp/portage/dev-java/jdbc-jaybird-2.1.0-r1/work/client-java ...
Java QA Notice: You should inherit java-ant-2 when using eant

Means rewriting is not happening:

class-version-verify.py -t 1.4 /usr/share/jdbc-jaybird/lib/*.jar
CVV: 4
Checked: 737 Good: 40 Bad: 697

Simple rewriting is not useful:
set-pool1.4-src:

set-pool1.5-src:

compile-pool:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jdbc-jaybird-2.1.0-r1/work/client-java/output/pool
    [javac] Compiling 38 source files to /var/tmp/portage/dev-java/jdbc-jaybird-2.1.0-r1/work/client-java/output/pool
    [javac] This version of java does not support the classic compiler; upgrading to modern
    [javac] /var/tmp/portage/dev-java/jdbc-jaybird-2.1.0-r1/work/client-java/src/pool_jdk1_5/org/firebirdsql/pool/DriverConnectionPoolDataSource.java:54: generics are not supported in -source 1.4
    [javac] (try -source 1.5 to enable generics)
    [javac]             Hashtable<?,?> environment) throws Exception {
    [javac]                      ^
    [javac] /var/tmp/portage/dev-java/jdbc-jaybird-2.1.0-r1/work/client-java/src/pool_jdk1_5/org/firebirdsql/pool/FBConnectionPoolDataSource.java:53: generics are not supported in -source 1.4
    [javac] (try -source 1.5 to enable generics)
    [javac]             Hashtable<?,?> environment) throws Exception {
    [javac]                      ^
    [javac] 2 errors

It seems we need to probably force 1.4 and maybe have a java5 use flag.
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-01-16 06:27:08 UTC
*** Bug 205262 has been marked as a duplicate of this bug. ***
Comment 2 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-01-16 06:28:08 UTC
Need to modify compile.xml to respect -source/-target, both versions
Comment 3 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-02-13 20:16:27 UTC
Resolved in 2.1.2, just committed to tree.