Zn2O / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

NPE in GadgetGenerator when interface is missing an @Feature annotation #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.0RC1

Detailed description:
From Ray Cromwell:

There is a bug in the GadgetGenerator in the latest release. To
reproduce, simply have your gadget implement an interface which is not
a feature (e.g. has no @FeatureName), this will throw an NPE, which
will cause the GWT RC2 compiler to croak with no error messages. I've
submitted a patch to fix the compiler, here's a patch to fix the
generator, which is to simply move the writeRequirementsToElement()
call inside the if(name != null) check.

Workaround if you have one:

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by ericzun...@gmail.com on 25 Aug 2008 at 10:20

Attachments:

GoogleCodeExporter commented 9 years ago
Lets get this committed into Gadgets 1.0 final.

Original comment by mmendez+personal@google.com on 26 Aug 2008 at 1:15

GoogleCodeExporter commented 9 years ago
Ray's patch was committed as r724.

Original comment by mmendez+personal@google.com on 26 Aug 2008 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 11 Dec 2008 at 3:10