Project: JDT
Bug 76574 Refactor inner class of an interface [refactoring]
Reported: 2004-10-19 12:31:26 | Status: resolved fixed

How to reduce the behavior: =========================== 1) Have a _public_ inner class in a public java interface. The class does _not_ contain the public modifier explicitly, but implicitly the class is public. 2) Select the class name 3) Refactor via "Move Member Type to New File" What results: ============= Everything works fine, except the extracted class should be public but isn't. Example: ======== public interface Foo { class Bar { } } leads to extracted class: class Bar { } instead of to public Bar { } Further testing: ================ I tried it with a public class explicitly marked public. This works fine. Sebastian

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test24/out/Inner.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java