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/NewVariableCompletionProposal.java
public static final int LOCAL= 1;
	public static final int FIELD= 2;
	public static final int PARAM= 3;
	private int  fVariableKind;
	private SimpleName fOriginalNode;
	public NewVariableCompletionProposal(String label, ICompilationUnit cu, int variableKind, SimpleName node, int relevance) {
		super(label, cu, null, relevance, null);
	
		fVariableKind= variableKind;
		fOriginalNode= node;
		if (variableKind == FIELD) {
			setImage(JavaPluginImages.get(JavaPluginImages.IMG_MISC_PUBLIC));
		} else {
			setImage(JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL));
		}
	}
		
	protected ASTRewrite getRewrite() {
		AST ast= new AST();
		CompilationUnit origCU= ASTResolving.findParentCompilationUnit(fOriginalNode);
		
		ASTCloner cloner= new ASTCloner(ast, origCU);
		CompilationUnit cu= (CompilationUnit) cloner.getClonedRoot();
		SimpleName node= (SimpleName) cloner.getCloned(fOriginalNode);
		
		cloner= null;
		ASTRewrite rewrite= new ASTRewrite(cu);