commons-net-1.2.2-r1 fails to compile in java-5 because it use enum keyword. My proposed solution is to add source="1.4" in the build.xml dinah b # interdiff 1.diff /usr/portage/dev-java/commons-net/files/gentoo-1.2.diff.old diff -u build.xml build.xml.patched --- build.xml 2005-04-24 18:46:21.000000000 -0300 +++ build.xml.patched 2004-05-08 14:16:02.487920896 -0500 @@ -53,7 +53,7 @@ <target name="compile" description="o Compile the code"> <mkdir dir="${classesdir}"> </mkdir> - <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html" source="1.4"> + <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> <src> <pathelement location="src/java"> </pathelement> Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 57123 [details] new gentoo-1.2.diff
*** This bug has been marked as a duplicate of 79206 ***