On Thu, Jun 24, 2010 at 10:49 PM, Miroslav Pokorny <
miroslav.poko...@gmail.com> wrote:

> Why not write a little tool with ASM which visits all class dependencies
> starting with the remote servlet class. Naturally one would need to add from
> a whitelist because of reflection etc. If your tool is accurate then one
> should be able to get an accurate list of whats actually used at runtime.


But the point isn't to just include everything that is needed -- many of the
classes in a client package are dangerous to use because calling certain
methods on them (or using certain inner classes) will cause failures on the
server.  What is needed is actually refactoring to move actually shared
classes into shared rather than client, which has to play by the
restrictions of both server (no JSNI or GWT.create) and client (no
reflection or otherwise untranslatable classes).

-- 
John A. Tamplin
Software Engineer (GWT), Google

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to