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/GenericJavaTypeProposal.java
private boolean shouldAppendArguments(IDocument document, int offset) {
		try {
			IRegion region= document.getLineInformationOfOffset(offset);
			String line= document.get(region.getOffset(), region.getLength());
			
			int index= offset - region.getOffset();
			while (index != line.length() && Character.isUnicodeIdentifierPart(line.charAt(index)))
				++index;
			
			if (index == line.length())
				return true;
				
			char ch= line.charAt(index);
			return ch != '<';
		
		} catch (BadLocationException e) {
			return true;
		}
	}
	
	private StringBuffer createParameterList(CharSequence[] typeArgumentNames, int[] offsets, int[] lengths) {
		StringBuffer buffer= new StringBuffer();
		buffer.append(getReplacementString());
		buffer.append('<');
		for (int i= 0; i != typeArgumentNames.length; i++) {
			if (i != 0)
				buffer.append(", "); 
				
			offsets[i]= buffer.length();
			buffer.append(typeArgumentNames[i]);