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
throw new InvalidInputException("End of File");
			}
		} while (curr != tok); 
	}	
	
	public static int getPositionAfter(IScanner scanner, int token) throws InvalidInputException {
		readToToken(scanner, token);
		return scanner.getCurrentTokenEndPosition() + 1;
	}
	
	public static int getPositionBefore(IScanner scanner, int token) throws InvalidInputException {
		readToToken(scanner, token);
		return scanner.getCurrentTokenStartPosition();
	}
	
	public static int getPositionAfter(IScanner scanner, int defaultPos, int[] tokens) throws InvalidInputException {
		int pos= defaultPos;
		loop: while(true) {
			int curr= scanner.getNextToken();
			if (curr == ITerminalSymbols.TokenNameEOF) {
				return pos;
			}
			for (int i= 0; i < tokens.length; i++) {
				if (tokens[i] == curr) {
					pos= scanner.getCurrentTokenEndPosition() + 1;
					continue loop;
				}
			}
			return pos;
		}