Ah its also missing a default return value in your generated method:
public <T extends Constructable> T instantiate (String className) {
if("MyPanel".equals(className)) {
return (T) new MyPanel();
}
.....
if("MyPanel2".equals(className)) {
return (T) new MyPanel2();
}
....
*return null; // no matches*
}
You can also always add the "-gen <path/to/output/folder>" option to your
compiler args / run configuration. That way GWT will save all generated
sources in your specified folder and you can actually see what has been
generated.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/zK0WXAYW76YJ.
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.