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...
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...
*** This bug has been marked as a duplicate of 79206 ***