Bug 24025 Quick fix create method gets wrong parameters if parameters are arrays
Steps: 1)type somewhere: Object[] test1= new Object[]{}; Object[] test2= new Object[]{}; if(compareTheseArrays(test1,test2)){ System.out.println("they are the same"); } 2)A Quick fix icon will appear and ask you to create Method compareTheseArrays, select this. 3)note that the method created takes Object as parameters and not Object[]. Should this be? version. 20020920. JRT.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java
decl.setName(ast.newSimpleName(getMethodName()));
		
		NameProposer nameProposer= new NameProposer();
		List arguments= fArguments;
		List params= decl.parameters();
		
		int nArguments= arguments.size();
		ArrayList names= new ArrayList(nArguments);
		for (int i= 0; i < arguments.size(); i++) {
			Expression elem= (Expression) arguments.get(i);
			SingleVariableDeclaration param= ast.newSingleVariableDeclaration();
			Type type= evaluateParameterType(ast, elem);
			param.setType(type);
			param.setName(ast.newSimpleName(getParameterName(nameProposer, names, elem, type)));
			params.add(param);
		}
		
		Block body= ast.newBlock();
		if (!isConstructor()) {
			Type returnType= evaluateMethodType(ast);
			decl.setReturnType(returnType);
			ReturnStatement returnStatement= ast.newReturnStatement();
			returnStatement.setExpression(ASTResolving.getInitExpression(returnType));
			body.statements().add(returnStatement);
		}
		decl.setBody(body);
		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
		if (settings.createComments && !fSenderBinding.isAnonymous()) {
			StringBuffer buf= new StringBuffer();
			String[] namesArray= (String[]) names.toArray(new String[names.size()]);