Skip to content

Instantly share code, notes, and snippets.

@carchrae
Last active December 19, 2015 15:29
Show Gist options
  • Select an option

  • Save carchrae/5976820 to your computer and use it in GitHub Desktop.

Select an option

Save carchrae/5976820 to your computer and use it in GitHub Desktop.
weird behaviour with gwt java editor
package bug;
import com.google.gwt.core.client.GWT;
public class FormatBug {
public boolean testVar;
public static void testMethodString(String s) {
GWT.log(s);
};
public static void testMethodInt(int x) {
GWT.log("" + x);
}
public static native void test()/*-{
//this is fine
var testMethodInt = @bug.FormatBug::testMethodInt(I);
//this breaks formatting - comment out and then source formatting (CTRL+SHIFT+F) works
var testMethodStr = @bug.FormatBug::testMethodString(*);
}-*/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment