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
}
		} else {
			
			
			
			
			ITypeParameter[] parameters= computeTypeParameters();
			typeArgumentNames= new String[parameters.length];
			for (int i= 0; i < parameters.length; i++) {
				typeArgumentNames[i]= parameters[i].getElementName();
			}
		}
		return typeArgumentNames;
	}
	private ITypeParameter[] computeTypeParameters() throws IllegalArgumentException {
		
		if (fCompilationUnit != null) {
			String fullType= SignatureUtil.stripSignatureToFQN(String.valueOf(fProposal.getSignature()));
			try {
				IType type= fCompilationUnit.getJavaProject().findType(fullType);
				if (type != null) {
					return type.getTypeParameters();
				}
			} catch (JavaModelException e) {
				
			}
		}
		return new ITypeParameter[0];
	}