Bug 89551 [content assist] Order of completion proposals does not seem correct
build I20050329-2000 1) create p/ZZZ.java package p; public class ZZZ {} 2) create q/X.java package q; public class X { void zzz() { zz<<cursor>> } } 3) do ctrl+space at <<curosr>> location ZZZ is the first proposal and zzz() the second. But in this case zzz() should be the best proposal.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalResultCollector.java
proposal.setProposalInfo(new MethodProposalInfo(project, methodProposal));
		char[] completionName= methodProposal.getCompletion();
		IContextInformation contextInformation= createMethodContextInformation(methodProposal);
		proposal.setContextInformation(contextInformation);
		proposal.setTriggerCharacters(METHOD_WITH_ARGUMENTS_TRIGGERS);
		
		if (completionName.length > 0) {
			
			proposal.setCursorPosition(completionName.length - 1);
		}
		return proposal;
	}
	
	/*
	 * @see org.eclipse.jdt.internal.ui.text.java.ResultCollector#createTypeCompletion(org.eclipse.jdt.core.CompletionProposal)
	 */
	private IJavaCompletionProposal createTypeProposal(CompletionProposal typeProposal) {
		final ICompilationUnit cu= getCompilationUnit();
		if (cu == null)
			return super.createJavaCompletionProposal(typeProposal);
			
		IJavaProject project= cu.getJavaProject();
		if (!shouldProposeGenerics(project))
			return super.createJavaCompletionProposal(typeProposal);
		String completion= String.valueOf(typeProposal.getCompletion());
		
		if (completion.length() > 0 && completion.endsWith(";")) 
			return super.createJavaCompletionProposal(typeProposal);
		int start= typeProposal.getReplaceStart();
		int length= getLength(typeProposal);