I am faced the same problem.
So what is the way to customize serialization whitelist ?

On 16 ноя, 06:51, Edgenius <[email protected]> wrote:
> It is not new questions in this group. But I face a new problem in
> 2.0M2 as SerializationPolicy logic is changed.  I know GWT will put
> serializition class into SerializationPolicy whitelist. Before 2.0, I
> create a dummy method which hold all classes I want to pass to client
> side but they are not inside any method's  parameters or exceptions.
> It looks:
>
> public interface RemoteServiceAsync {
> public void serialPolicy(ClientAuthenticationException
> ae,ClientAccessDeniedException ade, CaptchaVerifiedException ce
>                         TextModel textModel,LinkModel linkModel, 
> MessageListModel mlm,
> AsyncCallback<Object> callback);
>                         }
>
> These Exception classes are a kind of "runtime exception" - For
> example, ClientAuthenticationException is thrown when login failed.
> It won't be checked exception as almost all methods have the
> possibilty to throw this exception. It is bad to write on every method
> like "int myMethod() throws ClientAuthenticationException.
>
> I guess 2.0 becomes smarter - it can distinguish the unused method and
> kick out my runtime exceptions classes from SerializationPolicy
> whitelist.  Unfortunately, it brings troubles as well.  So, do we have
> an easy to way to expand whitelist?

--

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=.


Reply via email to