Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here is what I found. After posting my question I went on and modified the compile task with the attributes <code>fork="true"</code>, <code>memoryinitialsize="256m"</code> and <code>memorymaximumsize="1024m"</code> (a found today that this was suggested by Kieron and jmanning2k, thanks for your time). This didn't solve the problem nonetheless.</p> <p>I decided to start removing classes from the source tree to see if a could pinpoint the problem. Turns out we had a Web Service client class for <a href="http://ws.apache.org/axis/" rel="nofollow noreferrer">Axis 1.4</a> that was auto-generated from a WSDL file. Now, this class is a monster (as in Frankenstein), it has 167 field members (all of them of type String), 167 getter/setter pairs (1 for each field), a constructor that receives all 167 fields as parameters, an equals method that compares all 167 fields in a strange way. For each field the comparison goes like this:</p> <pre><code>(this.A == null &amp;&amp; other.getA() == null) || (this.A != null &amp;&amp; this.A.equals(other.getA())) </code></pre> <p>The result of this comparison is "anded" (&amp;&amp;) with the result of the comparison of the next field, and so on. The class goes on with a hashCode method that also uses all fields, some custom XML serialization methods and a method that returns a Axis-specific metadata object that describes the class and that also uses all field members.</p> <p>This class is never modified, so I just put a compiled version in the application classpath and the project compiled without issues. </p> <p>Now, I know that removing this single source file solved the problem. However, I have absolutely no idea as to why this particular class caused the problem. It will be nice to know; what can cause or causes a StackOverflowError during compilation of Java code? I think I'll post that question.</p> <p>For those interested:</p> <ul> <li>Windows XP SP2</li> <li>SUN's JDK 1.4.2_17</li> <li>Ant 1.7.0</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload