Would GWT 2.8, Java 1.8 (-sourceLevel 1.8) be able to compile this?
@JsType(prototype="Window")
public interface Window {
static Window window() {
// returns $wnd;
return Util.getWindow();
}
void alert(String msg);
}
Window.window().alert("Does this work?");
Maybe it's premature to ask this, but the compiler chokes on this with an
out of memory error.
For Reference:
public class Util {
public static native Window getWindow() /*-{
return $wnd;
}-*/;
}
--
You received this message because you are subscribed to the Google Groups "GWT
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-web-toolkit-contributors/8f6046e5-5fe7-4752-8b68-bee339638e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.