Project: JDT
Bug 11537 Refactoring - extract local adds incorrect import
Reported: 2002-03-18 09:57:51 | Status: resolved fixed

In a method, given this: return fMyField.getArrayOfFoo() where the method getArrayOfFoo has a return type of Foo[], if I use extract local variable to extract "fMyField.getArrayOfFoo()" into a local variable "foos", it adds an (incorrect) import in the format import myPackage.Foo[]; Note that the array brackets should not appear in the import statement. Also note that in my case, the imports already included an import for the type "myPackage.Foo"... if that matters when trying to reproduce it.

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/ImportEdit.java