Reading the *.rpc.log and understanding why classes are included in the serialization policy file.
I'm looking at the *.rpc.log for one of my RPC calls and don't
understand why some classes are included in the policy file. As an
example consider the PopupListenerCollection. The line below appears
in the xxxxx.gwt.rpc file.
com.google.gwt.user.client.ui.PopupListenerCollection, true, true,
false, false, com.google.gwt.user.client.ui.PopupListenerCollection/
3060919138, 3060919138
In the *.rpc.log I see this
com.google.gwt.user.client.ui.PopupListenerCollection
Serialization status
Instantiable
Path
'com.google.gwt.user.client.ui.PopupListenerCollection' is
reachable as a subtype of type 'interface java.util.List<P>'
'java.util.List<P>' is reachable from field 'values' of type
'com.lombardi.online.model.client.ClientPropertyValueList<P>'
'com.lombardi.online.model.client.ClientPropertyValueList<com.lombardi.online.model.iface.PropertyValue>'
is reachable as a supertype of type 'class
com.lombardi.online.model.client.ClientLiteralValueList'
'com.lombardi.online.model.client.ClientLiteralValueList' is
reachable as a supertype of type 'class
com.lombardi.online.model.client.ClientConcatenatedLiteralValueList'
.......
The piece I don't understand is
'java.util.List<P>' is reachable from field 'values' of type
'com.lombardi.online.model.client.ClientPropertyValueList<P>'
The definition of ClientPropertyValueList starts with
public abstract class ClientPropertyValueList<P extends
PropertyValue>
implements IsSerializable, Serializable, PropertyValueList<P> {
/**
* The list of property values in this list.
*/
private List<P> values = new ArrayList<P>();
So the type of P must be a subclass of PropertyValue and I don't
understand why the serialization code thinks a PopupListenerCollection
could be assigned to values.
Someone please tell me what I'm doing wrong here.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home