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
public static IScanner createScanner(ICompilationUnit cu, int pos) throws InvalidInputException, JavaModelException {
		IScanner scanner= ToolFactory.createScanner(false, false, false, false);
		IBuffer buf= cu.getBuffer();
		scanner.setSource(buf.getCharacters());
		scanner.resetTo(pos, buf.getLength());
		return scanner;
	}
	
	public static void overreadToken(IScanner scanner, int[] prevTokens) throws InvalidInputException {
		boolean found;
		do {
			found= false;
			int curr= scanner.getNextToken();
			if (curr == ITerminalSymbols.TokenNameEOF) {
				throw new InvalidInputException("End of File");
			}
			for (int i= 0; i < prevTokens.length; i++) {
				if (prevTokens[i] == curr) {
					found= true;
					break;
				}
			}
		} while (found);
	}
		
	public static void readToToken(IScanner scanner, int tok) throws InvalidInputException {
		int curr= 0;
		do {
			curr= scanner.getNextToken();
			if (curr == ITerminalSymbols.TokenNameEOF) {