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/ui/text/java/CompletionProposalCollector.java
private IJavaCompletionProposal createMethodReferenceProposal(CompletionProposal methodProposal) {
		Image image= getImage(fLabelProvider.createImageDescriptor(methodProposal));
		String displayName= fLabelProvider.createLabel(methodProposal);
		String completion= String.valueOf(methodProposal.getCompletion());
		int start= methodProposal.getReplaceStart();
		int relevance= methodProposal.getRelevance();
		
		JavaCompletionProposal proposal= new JavaCompletionProposal(completion, start, getLength(methodProposal), image, displayName, relevance);
		
		if (fJavaProject != null)
			proposal.setProposalInfo(new MethodProposalInfo(fJavaProject, methodProposal));
		char[] completionName= methodProposal.getCompletion();
		boolean hasParameters= Signature.getParameterCount(methodProposal.getSignature()) > 0;
		if (hasParameters) {
			IContextInformation contextInformation= createMethodContextInformation(methodProposal);
			proposal.setContextInformation(contextInformation);
		
			proposal.setTriggerCharacters(METHOD_WITH_ARGUMENTS_TRIGGERS);
			
			if (completionName.length > 0) {
				
				proposal.setCursorPosition(completionName.length - 1);
			}
		} else {
			proposal.setTriggerCharacters(METHOD_TRIGGERS);
		}
		
		return proposal;
	}