GWT - RemoteService / Async synchronization

I have a GWT remote service MyService which also means I have MyServiceAsync. If I make changes to MyService interface, it allows me to synchronize the changes to MyServiceAsync. This is a create feature, but it also synchronizes the exceptions.

So,

public Object myMethod(int a) throws MyException;

syncs to:

void myMethod(int a, AsyncCallback async) throws MyException;

This seems like incorrect behavior, because MyServiceAsync.myMethod() will not throw an exception and the exception in caught in the AsyncCallback. Currently, I am syncing and the going an removing the exceptions.

Are there currently any plans to fix this?

Thanks,
Jeffrey

1 comment

Hello Jeffrey,

This bug should be fixed in last EAP build 6041 (http://www.jetbrains.net/jira/browse/IDEADEV-10454).

I have a GWT remote service MyService which also means I have
MyServiceAsync. If I make changes to MyService interface, it allows
me to synchronize the changes to MyServiceAsync. This is a create
feature, but it also synchronizes the exceptions.

So,

public Object myMethod(int a) throws MyException;

syncs to:

void myMethod(int a, AsyncCallback async) throws MyException;

This seems like incorrect behavior, because MyServiceAsync.myMethod()
will not throw an exception and the exception in caught in the
AsyncCallback. Currently, I am syncing and the going an removing the
exceptions.

Are there currently any plans to fix this?

Thanks,
Jeffrey



0

Please sign in to leave a comment.