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
String name= decl.getName().getIdentifier();
			if (isConstructor()) {
				StubUtility.genJavaDocStub("Constructor " + name, namesArray, null, null, buf);
			} else {
				String returnTypeSig= Signature.createTypeSignature(ASTNodes.asString(decl.getReturnType()), true);
				StubUtility.genJavaDocStub("Method " + name, namesArray, returnTypeSig, null, buf);
			}	
			Javadoc javadoc= ast.newJavadoc();
			javadoc.setComment(buf.toString());
			decl.setJavadoc(javadoc);
		}
		return decl;
	}
			
	private String getParameterName(NameProposer nameProposer, ArrayList takenNames, Expression argNode, Type type) {
		String name;
		if (argNode instanceof SimpleName) {
			name= ((SimpleName) argNode).getIdentifier();
		} else {
			name= nameProposer.proposeParameterName(ASTNodes.asString(type));
		}
		String base= name;
		int i= 1;
		while (takenNames.contains(name)) {
			name= base + i++;
		}
		takenNames.add(name);
		return name;
	}