Community
Participate
Working Groups
Build Identifier: 20090621-0832 When extracting a superclass and moving a static inner class to the new superclass along with a method that uses that class, the generated code includes an import which refers to it in its old location. Reproducible: Always Steps to Reproduce: 1. Create the following class: public class A { public static class InnerClass { } public void aMethod () { new InnerClass (); } } 2. Activate the extract superclass refactoring, enter a name, and select to move both members. Click Finish. 3. A "problem" is described that "inaccurate matches" have been found in the newly generated class. Click Finish again. The resulting new class looks like this: import A.InnerClass; public class NewSuperclass { public static class InnerClass { } public NewSuperclass () { super (); } public void aMethod () { new InnerClass (); } } The import on the first line is erroneous; it should not have been generated. The same problem occurs whether the class is in the default package or a named package.
Moving to JDT/UI
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.