On Wed, Jun 3, 2009 at 10:56 AM, Eric Ayers <[email protected]> wrote:
> protected String generateSelectionScript(...) {
> ...
> String gwtVersions[] = About.GWT_VERSION_NUM.split("\\.");
> replaceAll(scriptContents, "__GWT_MAJOR_VERSION__", gwtVersions[0] +
> "."
> + gwtVersions[1]);
> return scriptContents.toString();
> }
>
> The problem I'm having is that I believe that About.GWT_VERSION_NUM is
> being baked into the .class files generated when I compile gwt-gadgets.jar
> (with GWT 1.5 as it turns out). I think this needs to turn into a getter
> instead.
>
Yes, constants can be inlined into external classes (which I think was an
absolutely horrible idea in Java as it breaks separate compilation), and
using a getter will fix that.
--
John A. Tamplin
Software Engineer (GWT), Google
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---