shouldGenerateError(buggy, 4,
"Referencing field 'Buggy.x': type 'long' is not safe to access in JSNI code");
}
public void testFieldAssignment() {
MockJavaResource buggy = JavaResourceBase.createMockJavaResource("Buggy",
"class Buggy {",
" int foo = 3;",
" native void jsniMethod() /*-{",
" this.@Buggy::foo = 4;",
" }-*/;",