Project: JDT
Bug 87483 [refactoring] [extract local] wrong auto-added import line while refactor
Reported: 2005-03-09 06:47:17 | Status: resolved fixed

Assume the following two files: file Base.java: public class Base { public class inner {} } file Derrived.java: public class Derrived extends Base { public void foo() { inner bar = new inner(); } } If I now select the "new inner()" and choose refactoring-Extract local variable (usually Alt-Shift-L), eclipse does not recognize, that inner is already visible and want to include "Base.inner", which fails. Ciao, Imi.

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