Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130613 - dev-java/ant-owanttask-1.1-r1 fails to build with java 5
Summary: dev-java/ant-owanttask-1.1-r1 fails to build with java 5
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 08:13 UTC by Uwe Klosa
Modified: 2006-04-20 08:40 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 Uwe Klosa 2006-04-20 08:13:52 UTC
I'm testing the java-experimental overlay. When I try to install tomcat I get an error while emerging dev-java/ant-owanttask-1.1-r1. The reason for this failure is obvious:

compile:
    [mkdir] Created dir: /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/output/build
    [javac] Compiling 8 source files to /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/output/build
    [javac] /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/src/org/objectweb/util/ant/JavadocMultipleLink.java:88: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]                     for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                         ^
    [javac] /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/src/org/objectweb/util/ant/JavadocMultipleLink.java:88: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]                     for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                                              ^
    [javac] /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/src/org/objectweb/util/ant/JavadocMultipleLink.java:89: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]                             File current = new File((File) enum.nextElement(),
    [javac]                                                                ^
    [javac] /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/src/org/objectweb/util/ant/JavadocMultipleLink.java:106: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]             for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                 ^
    [javac] /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/src/org/objectweb/util/ant/JavadocMultipleLink.java:106: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]             for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                                      ^
    [javac] /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/src/org/objectweb/util/ant/JavadocMultipleLink.java:107: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]                     new File((File) enum.nextElement(),
    [javac]                                         ^
    [javac] 6 errors
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-04-20 08:21:30 UTC
Works here with sun-jdk-1.5 as preferred VM
during the actual build I can see
 * Enabling generation-2 compatibility ...
 * Using sun-jdk-1.4              

You probably use only java-experimental overlay without migration-overlay on top of it.
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2006-04-20 08:24:10 UTC
Don't use a 1.5 JDK as a system VM. It is package.masked for a reason. See http://www.gentoo.org/proj/en/java/tiger-faq.xml for details.It elaborates on what options you have if you still want to use Java 1.5.
Comment 3 Uwe Klosa 2006-04-20 08:34:28 UTC
I know that already. 

As I said I'm testing and wanted to post this bug for information to the developers. I thought you were interested in feedback.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-04-20 08:40:52 UTC
To test wich java 1.5 you must be using migration-overlay over experimental (read the wiki page for migrating).