I am using Eclipse IDE Version: Luna Service Release 1 (4.4.1). Using GWT 2.7 and Java 1.7.
I have implemented some custom collection class using replace with rule provided by GWT.
public class CustomArrayList<E> extends ArrayList{
// ...... overridden methods here
}
ArrayList arraList=GWT.create(ArrayList.class);
whenever I create instance of arraylist using GWT.create it use my on CustomArrayList class.
//gwt.xml file contains this configuration
<replace-with
class="xxxxxxxx.yyyyyyy.CustomArrayList">
<when-type-is class="java.util.ArrayList" />
</replace-with>
In GWT maven project on client side I use array list instantiation as per the mention above but But while project compilation got some stack overflow error with AbstarctTreeLogger related msg printing on console.
customcollection.CustomArrayList<java.lang.Object>
[INFO] [WARN] Checking all subtypes of Object which qualify for serialization [ERROR] Exception in thread "main" java.lang.StackOverflowError [ERROR] at com.google.gwt.dev.util.log.AbstractTreeLogger.commitMyBranchEntryInMyParentLogger(AbstractTreeLogger.java:252) [ERROR] at com.google.gwt.dev.util.log.AbstractTreeLogger.commitMyBranchEntryInMyParentLogger(AbstractTreeLogger.java:252) [ERROR] at
It produces this error repeatedly for at least a few thousand times and then the compiler crashes.
After failure If I try again it works but not every time.
Can any one help me to figure out issue.