GWT 2.8 js interopt compiler issue

116 views
Skip to first unread message

Brandon Donnelson

unread,
Jun 11, 2015, 11:35:30 AM6/11/15
to google-web-tool...@googlegroups.com
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;

  }-*/;

}

Brandon Donnelson

unread,
Jun 11, 2015, 11:54:01 AM6/11/15
to google-web-tool...@googlegroups.com
Nevermind, memory had to be increased. 
Reply all
Reply to author
Forward
0 new messages