Apache has confirmed and fixed this problem, however, pending a new release of ant, I think this is important enough to patch within the gentoo tree. I've created an ebuild and patch to deal specifically with this and installed it in my overlay. Additionally, I've attached both ebuild and patch to the bug. The patch was taken from ant's svn: svn diff -r 672109:743910 http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java Where 672109 is the revision of the 1.7.1 release tag and 743910 is the revision of the fix. The two prereq changes that get pulled in to JAvac.java are self-contained and need no other changes to the tree. Reproducible: Always Steps to Reproduce: 1. One such example of the error occurs when building JBoss Seam 2.1.1 GA from source. See https://jira.jboss.org/jira/browse/JBSEAM-3386 for more details. 2. See Apache's Bugzilla for more details: https://issues.apache.org/bugzilla/show_bug.cgi?id=43114
Created attachment 185029 [details] Ebuild containing a backported fix for ant-core to correct pkg-config.class problems
Created attachment 185031 [details, diff] Backported patch for ant-core to correct pkg-info.class problems
Patch added. Thanks for reporting. In the future there's no need to attach full ebuild files if you are only adding a single epatch line. All developers or users taking patches from bugzilla should know where to put the epatch lines. Adding epatch yourself is faster than having to diff etc.
Created attachment 185284 [details, diff] Patch fixed for Java 1.4 (In reply to comment #2) > Backported patch for ant-core to correct pkg-info.class problems That patch breaks compatibility with Java 1.4 due to its use of java.lang.Long.valueOf(long). Upstream realized and addressed this problem as well: http://fisheye6.atlassian.com/changelog/ant/?cs=744132 The attached patch backports only changesets 743910 and 744132, without the pretty unrelated changesets 693732 and 738761 included in the patch from comment #2. In case you would rather have them as well, creating a corresponding diff is even easier. References: http://fisheye6.atlassian.com/browse/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java?r1=738761&r2=744132 http://fisheye6.atlassian.com/browse/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java
Patch updated.