Community
Participate
Working Groups
Build 20030925 CodeAssist doesn't provide completions in WorkingCopyNotInClasspathTests, inside the cast expression: copy = (ICompilationUnit) cu.bec<CODE ASSIST> where it should offer method #becomeWorkingCopy. // 41583 - variation using primary working copy public void testReconcileAndCommit3() throws CoreException { ICompilationUnit copy = null; try { this.createProject("SimpleProject"); this.createFolder("/SimpleProject/src/native.1"); String source = "class X {}"; IFile file = this.createFile ("/SimpleProject/src/native.1/X.java", source); ICompilationUnit cu = JavaCore.createCompilationUnitFrom(file); copy = (ICompilationUnit) cu.bec<CODE ASSIST HERE>
I suspect it is due to the fact the #become method is of type void, and we are in a situation where codeassist as an expected type (lhs of assign). The match should still be offered, though a likely not very relevant one.
void methods are filtered if the completion node have an expected type. Fixed by removing the filter.
Verified.