There is a property that can perform a blacklist of this class. For example, in a blacklist of collections other than ArrayList, add these lines to your * .gwt.xml:
<extend-configuration-property name="rpc.blacklist" value="java.util.HashSet"/>
<extend-configuration-property name="rpc.blacklist" value="java.util.LinkedHashSet"/>
<extend-configuration-property name="rpc.blacklist" value="java.util.LinkedList"/>
<extend-configuration-property name="rpc.blacklist" value="java.util.Stack"/>
<extend-configuration-property name="rpc.blacklist" value="java.util.TreeMap"/>
<extend-configuration-property name="rpc.blacklist" value="java.util.TreeSet"/>
<extend-configuration-property name="rpc.blacklist" value="java.util.Vector"/>
This was necessary to reduce the size of JS when sending GWT inline objects com.google.gwt.user.client.ui.SuggestOracle$Responsefor wiring. Such objects contain java.util.Collection, but I knew that I would only ever send back an ArrayList.
- , , . , , GWT ( ?). "rpc.blacklist" SuggestOracle, .