Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116075 - ant-owanttask-1.1-r1 does not compile with Java 1.5
Summary: ant-owanttask-1.1-r1 does not compile with Java 1.5
Status: RESOLVED DUPLICATE of bug 79206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 12:13 UTC by Philipp Kirchner
Modified: 2005-12-19 20:19 UTC (History)
0 users

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


Attachments
Patch for compilation with java 1.5 (owanttask-1.5.patch,1.06 KB, patch)
2005-12-19 12:14 UTC, Philipp Kirchner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Kirchner 2005-12-19 12:13:06 UTC
Compilation fails:

>>> emerge (1 of 86) dev-java/ant-owanttask-1.1-r1 to /
>>> md5 files   ;-) ant-owanttask-1.1-r1.ebuild
>>> md5 files   ;-) files/digest-ant-owanttask-1.1-r1
>>> md5 src_uri ;-) owanttask-1.1-gentoo.tar.bz2
>>> Unpacking source...
>>> Unpacking owanttask-1.1-gentoo.tar.bz2 to /var/tmp/portage/ant-owanttask-1.1-r1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1 ...
Buildfile: build.xml

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

BUILD FAILED
/var/tmp/portage/ant-owanttask-1.1-r1/work/owanttask-1.1/build.xml:8: Compile failed; see the compiler error output for details.

Total time: 1 second

!!! ERROR: dev-java/ant-owanttask-1.1-r1 failed.

Will attach a patch soon...
Comment 1 Philipp Kirchner 2005-12-19 12:14:57 UTC
Created attachment 75133 [details, diff]
Patch for compilation with java 1.5

This fixes the misuse of Keyword "enum", so it works, deprecated API use is not fixed...
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-12-19 20:19:21 UTC

*** This bug has been marked as a duplicate of 79206 ***