Lines 10867-10872
Link Here
|
10867 |
"voidClass[TYPE_REF]{voidClass, test, Ltest.voidClass;, null, null, " + (R_DEFAULT + R_RESOLVED + R_INTERESTING + R_CASE + R_ANNOTATION + R_UNQUALIFIED + R_TARGET + R_NON_RESTRICTED) + "}", |
10867 |
"voidClass[TYPE_REF]{voidClass, test, Ltest.voidClass;, null, null, " + (R_DEFAULT + R_RESOLVED + R_INTERESTING + R_CASE + R_ANNOTATION + R_UNQUALIFIED + R_TARGET + R_NON_RESTRICTED) + "}", |
10868 |
requestor.getResults()); |
10868 |
requestor.getResults()); |
10869 |
} |
10869 |
} |
|
|
10870 |
// |
10871 |
public void test0338() throws JavaModelException { |
10872 |
this.workingCopies = new ICompilationUnit[1]; |
10873 |
this.workingCopies[0] = getWorkingCopy( |
10874 |
"/Completion/src/test/Test.java", |
10875 |
"package test;\n"+ |
10876 |
"public class Xxx {\n"+ |
10877 |
" static {\n"+ |
10878 |
" new Object() {\n"+ |
10879 |
" public boolean f(Object o) {\n"+ |
10880 |
" if (o instanceof Yyy) {\n"+ |
10881 |
" ((Yyy<?, ?>)o).getZzz().\n"+ |
10882 |
" }\n"+ |
10883 |
" }\n"+ |
10884 |
" };\n"+ |
10885 |
" }\n"+ |
10886 |
"}\n"); |
10887 |
|
10888 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
10889 |
String str = this.workingCopies[0].getSource(); |
10890 |
String completeBehind = "getZzz()."; |
10891 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
10892 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
10893 |
|
10894 |
assertResults( |
10895 |
"", |
10896 |
requestor.getResults()); |
10897 |
} |
10870 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=153130 |
10898 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=153130 |
10871 |
public void testEC001() throws JavaModelException { |
10899 |
public void testEC001() throws JavaModelException { |
10872 |
this.workingCopies = new ICompilationUnit[1]; |
10900 |
this.workingCopies = new ICompilationUnit[1]; |