shouldGenerateError(buggy, 5,
"Referencing field 'Buggy.bar': unable to resolve field in class 'some.Buggy'");
}
public void testImportedClassField_PartialMatch() {
MockJavaResource buggy = JavaResourceBase.createMockJavaResource("some.Buggy",
"package some;",
"import other.pack.OtherPackageClass;",
"class Buggy {",
" native void jsniMethod() /*-{",
" this.@PackageClass::f;",
" }-*/;",
"}");
MockJavaResource otherPackageClass =
JavaResourceBase.createMockJavaResource("other.pack.OtherPackageClass",
"package other.pack;",
"public class OtherPackageClass {",
" public int f;",
"}");