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
if (proposal.getKind() == CompletionProposal.METHOD_REF)
			return createMethodReferenceProposal(proposal);
		if (proposal.getKind() == CompletionProposal.TYPE_REF)
			return createTypeProposal(proposal);
		return super.createJavaCompletionProposal(proposal);
	}
	private IJavaCompletionProposal createMethodReferenceProposal(CompletionProposal methodProposal) {
		String completion= String.valueOf(methodProposal.getCompletion());
		
		
		if ((completion.length() == 0) || ((completion.length() == 1) && completion.charAt(0) == ')') || Signature.getParameterCount(methodProposal.getSignature()) == 0)
			return super.createJavaCompletionProposal(methodProposal);
		Image image= getImage(getLabelProvider().createImageDescriptor(methodProposal));
		String displayName= getLabelProvider().createLabel(methodProposal);
		int start= methodProposal.getReplaceStart();
		int end= methodProposal.getReplaceEnd();
		int relevance= methodProposal.getRelevance();
		String name= String.valueOf(methodProposal.getName());
		
		
		char[] signature= methodProposal.getSignature();
		char[][] parameterNames= methodProposal.findParameterNames(null);
		IPreferenceStore preferenceStore= JavaPlugin.getDefault().getPreferenceStore();
		JavaCompletionProposal proposal;
		if (preferenceStore.getBoolean(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS))
			proposal= new ParameterGuessingProposal(name, signature, start, end - start, image, displayName, relevance, parameterNames, methodProposal.getCompletionLocation() + 1, getCompilationUnit());
		else
			proposal= new ExperimentalProposal(name, signature, parameterNames, start, end - start, image, displayName, relevance);
		IJavaProject project= getCompilationUnit().getJavaProject();
		if (project != null)