Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90297 - dev-java/commons-net fails to compile with java5
Summary: dev-java/commons-net fails to compile with java5
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-04-24 15:12 UTC by Juan F. Codagnone
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
new gentoo-1.2.diff (gentoo-1.2-r2.diff,3.20 KB, text/plain)
2005-04-24 15:14 UTC, Juan F. Codagnone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan F. Codagnone 2005-04-24 15:12:28 UTC
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.
Comment 1 Juan F. Codagnone 2005-04-24 15:14:35 UTC
Created attachment 57123 [details]
new gentoo-1.2.diff
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-25 07:36:19 UTC

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