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
return;
			}
			Statement statement= ASTResolving.findParentStatement(node);
			if (statement != null && statement.getParent() instanceof Block) {
				Block block= (Block) statement.getParent();
				List statements= block.statements();
				statements.add(0, newDecl);
				
				rewrite.markAsInserted(newDecl);
			}
		}
	}
	private void doAddField(AST ast, SimpleName node, ASTRewrite rewrite) {
		ASTNode parentType= ASTResolving.findParentType(node);
		if (parentType != null) {
			VariableDeclarationFragment fragment= ast.newVariableDeclarationFragment();
			fragment.setName(ast.newSimpleName(node.getIdentifier()));
			
			FieldDeclaration newDecl= ast.newFieldDeclaration(fragment);
			newDecl.setType(evaluateVariableType(ast));
			
			int modifiers= Modifier.PRIVATE;
			if (ASTResolving.isInStaticContext(node)) {
				modifiers |= Modifier.STATIC;
			}
			
			newDecl.setModifiers(modifiers);
		
			boolean isAnonymous= parentType.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION;
			List decls= isAnonymous ?  ((AnonymousClassDeclaration) parentType).bodyDeclarations() :  ((TypeDeclaration) parentType).bodyDeclarations();