Hi, When building XOM using Ant I get a StackOverflowError that I cannot reproduce outside of Ant. Here is how you can reproduce it: 1) Download http://www.cafeconleche.org/XOM/xom-1.2b2.zip and extract it into <xom-dir> 2) Download http://dist.codehaus.org/jaxen/distributions/jaxen-1.1.1-src.zip into <xom-dir> 3) Copy the attached build.xml into <xom-dir> and run "ant dist" 4) You should see the same output mentioned in output.txt This is reproducible 100% of the time both under JDK 1.5 or 1.6
Created attachment 22240 [details] modified build.xml
Created attachment 22241 [details] Output log
FYI: I get this same exception running "ant dist" against XOM 1.1 without modifying build.xml
Did Ant 1.7.0 fail in this way?
Yes, I believe 1.6.x failed this way too.
I vaguely recall seeing it fail in Gump that way on some JDK. If you look into the stacktrace, you see the stack is taken up by some recursive calls inside Sun's javac. I'm a bit surprised you wouldn't see the same error when compiling the same set of files outside of Ant. Does the problem go away if you fork the javac task?
That's correct, fork="true" makes the problem go away.
rather CANTFIX