Summary: | commons-lang-2.0-r1 fails to compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tkoczoro |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | dev-java/commons-lang-2.0-r2 |
Description
tkoczoro
2004-07-26 10:01:32 UTC
don't use a hard masked jdk I think the resolution of this bug is incorrect. Sooner or later Suns JDK 1.5 will be marked as stable, and this bug will again become a problem. I suggest 2 possible solutions. Solution 1 ========== Modify the ant build script and remove the source="1.1" line from the compile target <javac srcdir="${source.home}" destdir="${build.home}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> Solution 2 ========== Modify the compile target as above but instead of removing the target="1.1" add a line source="1.1" <javac srcdir="${source.home}" destdir="${build.home}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" source="1.1" target="1.1" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> Peter. Created attachment 49501 [details] dev-java/commons-lang-2.0-r2 The suggested solution is WAY better :D I made a simple ebuild to use suggested solution 2 which works fine for me (taken from http://forum.java.sun.com/thread.jspa?forumID=316&threadID=321534) +1 to egore's patch/ebuild. works nicely. i agree this shouldn't be marked as invalid. |