Community
Participate
Working Groups
Consider this valid Java code: // ------------------------------------------- package com.example; import static com.example.Container.E.A; public class Container { E e = A; enum E { A, B } } // ------------------------------------------- I now want to move the nested enum type "E" to its own file using "Alt-Shift-T > Move Type to New File..." I'm left with the following, wrong code: // ------------------------------------------- package com.example; import static com.example.Container.E.A; public class Container { E e = A; } // ------------------------------------------- The static import is not updated to the expected new import: // ------------------------------------------- import static com.example.E.A; // -------------------------------------------
It seems, I have already reported this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=493212 *** This bug has been marked as a duplicate of bug 493212 ***