Last active
December 19, 2015 15:29
-
-
Save carchrae/5976820 to your computer and use it in GitHub Desktop.
weird behaviour with gwt java editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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