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
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.
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.
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.
To test wich java 1.5 you must be using migration-overlay over experimental (read the wiki page for migrating).