Forcing GWT to assume List is implemented as ArrayList

Posted by joecks on Stack Overflow See other posts from Stack Overflow or by joecks
Published on 2010-12-21T16:16:49Z Indexed on 2010/12/21 16:54 UTC
Read the original article Hit count: 244

Filed under:
|

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 .

© Stack Overflow or respective owner

Related posts about java

Related posts about gwt