Forcing GWT to assume List is implemented as ArrayList
- by joecks
For some reason I'm stucked with model classes using List as Collection Type and I would like to use the model on the client side. However GWT of course fails serializing java.util.List. However all implementations of List in this model are based on ArrayList. So is it possible to tell GWT to assume List is ArrayList?
Edit
GWT fails on compile time, since a possible candidate for List is also java.util.Collections.SingeltonList - which can not be compiled.
I'm using GWT 2.1 and Java 1.6 .