Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support blocking RemoteService interfaces #2

Open
niloc132 opened this issue Jan 21, 2019 · 0 comments
Open

Support blocking RemoteService interfaces #2

niloc132 opened this issue Jan 21, 2019 · 0 comments
Milestone

Comments

@niloc132
Copy link
Member

GWT2's Generator based RPC implementation encouraged two interfaces, blocking and async, where the async interface could be generated at design time (as GWT generators run too late to allow developers to reference them).

This issue tracks two features:

  • Allow the developer to author only the RemoteService blocking interface, and have the async interface generated at compile time, so it can be used in other Java code
  • Emit adaptor code which makes it possible to implement the blocking interface, but have it be called by the async version (with appropriate wrapping try/catch blocks).

One issue that needs to be tracked: the Callback interface prefers some kind of error object (both to avoid declaring Throwable and getting the whole type tree, and to avoid the potential security leak of sending stack traces to clients) - either support will need to be added to handle the union of throws args, or some adapter to let exceptions be turned into error objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant