Java requires that public classes and public interfaces be in their own files, with a file name that matches the class / interface name.
So unless you want to put your client and server code in the same package, your idea's a non-starter. And, IIUC, you CAN'T put the client and server code in the same package. Greg On Aug 20, 12:47 pm, mkh <[email protected]> wrote: > Given tight linkage between the service and it async counterpart, I > wonder why the convention is not to put these together in one file, > much like a GwtEvent and its EventHandler: > > public interface AccountsService extends RemoteService { > AccountRequestDto update(AccountRequestDto request) throws > NotLoggedInException; > > interface Async { > void update(AccountRequestDto request, final > AsyncCallback<AccountRequestDto> async); > } > > } -- 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.
