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
* @param project the java project to reference when resolving types
	 * @param proposal the proposal to generate information for
	 */
	public MethodProposalInfo(IJavaProject project, CompletionProposal proposal) {
		super(project, proposal);
	}
	/**
	 * Resolves the member described by the receiver and returns it if found.
	 * Returns <code>null</code> if no corresponding member can be found.
	 *
	 * @return the resolved member or <code>null</code> if none is found
	 * @throws JavaModelException if accessing the java model fails
	 */
	protected IMember resolveMember() throws JavaModelException {
		char[] declarationSignature= fProposal.getDeclarationSignature();
		String typeName;
		
		
		if (declarationSignature == null)
			typeName= "java.lang.Object"; 
		else
			typeName= SignatureUtil.stripSignatureToFQN(String.valueOf(declarationSignature));
		IType type= fJavaProject.findType(typeName);
		if (type != null) {
			String name= String.valueOf(fProposal.getName());
			String[] parameters= Signature.getParameterTypes(String.valueOf(SignatureUtil.fix83600(fProposal.getSignature())));
			for (int i= 0; i < parameters.length; i++) {
				parameters[i]= SignatureUtil.getLowerBound(parameters[i]);
			}
			boolean isConstructor= Signature.getReturnType(fProposal.getSignature()).length == 0;