Bug 85901 Code assist/auto completion - overwrite method not working
Overwriting methods from superclass with two or more parameters does not work properly in M5. It gives me the method header without the body and all parameter types fully qualified. When i disable Prefs->Java->Code Assist->Advanced->"Add import instead of qualified name" code assist gives me no autocompletion for overriding methods at all. Example: import java.util.Random; public class Foo { public void f(Random a, int b) { } } public class Bla extends Foo { f//hit ctrl-space } With "Add import instead of qualified name" checked, choosing the override f() from Foo in the code assist popup will lead to public class Bla extends Foo{ public void f(java.util.Random a,int b)// cursor blinking here } With "Add import instead of qualified name" unchecked, the code assist popup does not show me any override options at all. Autocompletion for methods with no or one parameter(s) seem to work.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ResultCollector.java
*/
	public void reset(int codeAssistOffset, int contextOffset, IJavaProject jproject, ICompilationUnit cu) {
		fJavaProject= jproject;
		fCompilationUnit= cu;
		fCodeAssistOffset= codeAssistOffset;
		fContextOffset= contextOffset;
		
		fUserReplacementLength= -1;
		
		fLastProblem= null;
		
		for (int i= 0; i < fResults.length; i++)
			fResults[i].clear();
		
		fSuggestedMethodNames.clear();
	}
	/**
	 * Specifies the context of the code assist operation.
	 * @param codeAssistOffset The Offset on which the code assist will be called.
	 * Used to modify the offsets of the created proposals. ('Non Eating')
	 * @param jproject The Java project to which the underlying source belongs.
	 * Needed to find types referred.
	 * @param cu The compilation unit that is edited. Used to add import statements.
	 * Can be <code>null</code> if no import statements should be added.
	 */
	public void reset(int codeAssistOffset, IJavaProject jproject, ICompilationUnit cu) {
		reset(codeAssistOffset, -1, jproject, cu);
	}
	
	/**