Thursday, March 30, 2017

Extending ArrayList - GWT compiler crashes out


I have a requirement where I am creating a set of custom collection classes by deriving from existing ones, such as 

public class CustomArrayList<E> extends ArrayList<E>{

public CustomArrayList(){



Then I use a replace with rule to replace ArrayList with this custom collection

//gwt.xml file contains this configuration        <replace-with          class="xxxxxxxx.yyyyyyy.CustomArrayList">          <when-type-is class="java.util.ArrayList" />      </replace-with>

This seems to crash the compiler randomly. I would say in about 3 runs it crashes once. Please note the project has a bit clientside codebase spanning atleast 1000 odd classes.

The error shown is 

verifying instantiability of 


[INFO] [WARN] Checking all subtypes of Object which qualify for serialization [ERROR] Exception in thread "main" java.lang.StackOverflowError [ERROR] at [ERROR] at [ERROR] at

I also posted this question on SO -

Any pointers shall be extremely helpful. 


You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment