If Java 1.5 is installed as the default JVM, compilation fails: [javac] /var/tmp/portage/commons-net-1.2.2-r1/work/commons-net-1.2.2/src/java/examples/mail.java:51: 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] Enumeration enum; The ebuild should patch the ant script to pass -source 1.4 to javac Reproducible: Always Steps to Reproduce: 1. Set JDK 1.5 as default 2. emerge =dev-java/commons-net-1.2.2-r1 Actual Results: Usingn sub-jdk-1.5.0.02, emerge produces several errors during compile, starting with [javac] /var/tmp/portage/commons-net-1.2.2-r1/work/commons-net-1.2.2/src/java/examples/mail.java:51: 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] Enumeration enum; Expected Results: the package should have merged cleanly
*** This bug has been marked as a duplicate of 79206 ***