I am a Summer of Code participant working on a source compatibility
tool for the GWT.
The tool is described at http://code.google.com/p/google-web-toolkit/wiki/GWT_GSoC
. Initial ideas, which I already implemented with reflection, include:
* Compares the "footprints" of two packages, identifying
differences, such as:
o Added or deleted methods/fields
o New/missing interfaces
o Visibility changes on members (such as from going from
public to protected)
The tool will produce XML output that can later be read by other
tools, or transformed to other formats with XSLTs. Also, reflection
was used for a quick-and-dirty solution that only produces some output
to test. The bulk of the tool will be based on ASTs.
Can you think of additional differences to be identified that will be
useful to GWT users? Do you think there are compatibility problems
that can only be detected by analyzing JSNI code? Is XML a good output
format?
Thanks,
Alex
@gwt.typeArgs and other annotations in the JavaDoc prefix that aren't
explicit JavaDoc commands.
If you want to build a dependency map of functions to invocation
targets and fields, you would definitely need to analyze JSNI. I'd
imagine that you could pull quite a bit of this out of the GWT
compiler.
XML can be a fine choice for the container. Just make sure to think
about schema design and don't use XML to reinvent property files :-)
--
Bob Vawter
Google Web Toolkit Team
I have to say I'm not very experienced with the GWT, and I know quite
a bit about analyzing Java code (doing a PhD on that). So even if
something seems obvious to a GWT person, I do not know the domain
well, and it probably won't be obvious to me. Group, please offer more
suggestions, even if they seem obvious to you.
Thanks,
Alex
On Jun 15, 7:30 pm, BobV <b...@google.com> wrote: