Project: JDT
Bug 210336 [extract local] Extract local variable falsely detects a conflict
Reported: 2007-11-20 00:04:18 | Status: resolved fixed

package a; public class A { List var = new ArrayList(); } package b; public class B extends a.A { public void doSomething() { new ArrayList().size(); } } In the above snippet, if you try to extract "new ArrayList()" as a local variable "var" in doSomething(), you will be warned that a variable with that name is already present in the visible scope.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java