I've tried using Map
, HashMap
and LinkedHashMap
as a type for AutoBean factory and always after serializing it's changing initial elements order.
I don't want to send additional ArrayList
that will hold the order data. Is there a way to force AutoBean to keep order in a Map
?
Apparently, and at least in GWT 2.4,
LinkedHashMap.clone()
in GWT returns aHashMap
, in contrast to pure Java behavior. AutoBean probably relies on clone() which messes up the order in the end.