Hey Thomas,
Responses inline:

On Wed, Jun 24, 2009 at 12:19 PM, Thomas Broyer <[email protected]> wrote:

>
>
>
> On 24 juin, 17:00, Rajeev Dayal <[email protected]> wrote:
> > Hi Clanusse,
> >
> > You are right - the only class files that are needed are those that are
> used
> > by RPC, which are:
> >
> > -your sync interface
> > -any types that can be passed across the wire over RPC
> > -your server-side classes (including the implementation of your sync
> > interface)
> >
> > Unfortunately, the plugin's deployment mechanism is not smart enough to
> know
> > which types are purely client and purely server. To do this, the plugin
> > would have to interpret GWT's module information, which it does not do
> right
> > now. This is a feature that will be available in a future version of the
> > plugin, and at that time, we should be able to "smarten up" the
> deployment
> > mechanism so that it excludes GWT client classes from
> war/WEB-INF/classes.
>
> Er... and if you happen to have a "shared" subpackage that contains
> shared client+server classes?!


Yes, you're right - that's what I was referring to when I said "any types
that can be passed across the wire over RPC".


>
>
> I guess the plugin would rather have to interpret the non-client
> classes and bring in any dependency found in the GWT client packages
> (this would include the RPC "sync" interfaces for instance and "any
> types that can be passed across the wire over RPC").
> Much more difficult than "interpret[ing] GWT's module information"...


Yes, you are right - I was summarizing when I said "Interpret GWT's module
information". What I meant is that at the least, we'd have to analyze GWT
modules, which we do not do now. The problem with analyzing the non-client
classes is that you can never be sure classes in the GWT client packages
will be referenced, due to reflection.

In order to solve this problem, we may have to add some more information to
GWT modules so that "shared" code can be called out explicitly.


> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to