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/ASTResolving.java
if (analyzer.hasSelectedNodes()) {
			return analyzer.getFirstSelectedNode();
		}
		return analyzer.getLastCoveringNode();
	}
	
	public static ITypeBinding getTypeBinding(ASTNode node) {
		ITypeBinding binding= getPossibleTypeBinding(node);
		if (binding != null) {
			String name= binding.getName();
			if (binding.isNullType() || "void".equals(name)) { 
				return node.getAST().resolveWellKnownType("java.lang.Object"); 
			} else if (binding.isAnonymous()) {
				return binding.getSuperclass();
			}
		}
		return binding; 
	}
		
	private static ITypeBinding getPossibleTypeBinding(ASTNode node) {	
		ASTNode parent= node.getParent();
		switch (parent.getNodeType()) {
		case ASTNode.ASSIGNMENT:
			Assignment assignment= (Assignment) parent;
			if (node.equals(assignment.getLeftHandSide())) {
				
				return assignment.getRightHandSide().resolveTypeBinding();
			}
			
			return assignment.getLeftHandSide().resolveTypeBinding();