Bug 95785 [5.0] Content assist for Collection#toArray(T[]) does not show additional info
N20050518-0010 (also with HEAD of JDT/UI and JDT/Core) - have 'Fill argument names on completion' and 'Guess filled method arguments' enabled - in the method below (in a 5.0 project), execute contant assist after toArray and choose "toArray(Object[] a)": public void test(java.util.List aList){ aList.toArray } => There's not javadoc for this method => the line now reads: aList.toArray(toarray - convert collection to array) - changing the parameter type to List<Object> splits the proposal in two and emits a beep when the proposals are inserted: - toArray(T[]) T[] - Collection - toArray(T[]) T[] - List => Expected: only the one from List is proposed; no beep.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodProposalInfo.java
* based on the position they appear in the type declaration. The type
	 * signatures are filtered through
	 * {@link SignatureUtil#getLowerBound(char[])}.
	 * </p>
	 *
	 * @param type the type to get the variables from
	 * @return a map from type variables to concrete type signatures
	 * @throws JavaModelException if accessing the java model fails
	 */
	private Map computeTypeVariables(IType type) throws JavaModelException {
		Map map= new HashMap();
		char[] declarationSignature= fProposal.getDeclarationSignature();
		if (declarationSignature == null) 
			return map;
		char[][] concreteParameters= Signature.getTypeArguments(declarationSignature);
		ITypeParameter[] typeParameters= type.getTypeParameters();
		for (int i= 0; i < typeParameters.length; i++) {
			String variable= typeParameters[i].getElementName();
			if (concreteParameters.length > i)
				
				map.put(variable, SignatureUtil.getLowerBound(concreteParameters[i]));
			else
				
				map.put(variable, "Ljava.lang.Object;".toCharArray()); 
		}
		return map;
	}
	/**
	 * Finds a method by name. This searches for a method with a name and
	 * signature. Parameter types are only compared by the simple name, no