Sunday, May 30, 2010

Re: GWT.runAsync and Command Pattern

You might be running into this issue:

The compiler simply doesn't do enough analysis to do code split
properly when inheritance is involved, staring the issue may help.


On May 30, 7:38 am, Julio Faerman <> wrote:
> Hi,
> I am trying to split a GWT app that uses the command (action) pattern.
> The problem is that  "GWT.create(ActionService.class)" causes every
> subclass of the return and parameter types to be included in the
> initial fragment.
> For instance, my action interface is:
> public interface ActionService extends RemoteService {
>         <T extends Response, V extends Request> T execute(V req) throws
> ActionFailedException;
> }
> the problem is that "module1.SomeRequest" and "module2.OtherRequest"
> gets included in the initial fragment.
> Do you see a way around this?
> Thanks,
> Julio Faerman

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment