You're correct. Best practice for choice of return type in an RPC interface is 
the exact opposite from what you would normally use in Java. That is, you 
should be as specific as possible to avoid forcing GWT having to generate 
serialization code for every implementation of Set or List etc.

Paul

On 08/12/11 12:50, Filippo De Luca wrote:
Hi to all,
I have a doubt about the best return type of a RPC service: shortly is better 
to return an interface or the implementation object? (Set or HashSet?)

I think is better use the implementing class due to the fast serialization or 
permutation, am I wrong?
--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/SbFWi-Eelc8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to