Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 104007

Summary: [reorg] move of inner interfaces results in incompilable code [refactoring]
Product: [Eclipse Project] JDT Reporter: Alexander Pavlov <Alexander.Pavlov>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Alexander Pavlov CLA 2005-07-15 10:20:20 EDT
Create "package1" package, in "package1" create the "A" and "B" classes.
create 2 inner interfaces in class A as follows:

 public interface InnerInterface2 {
 }

 public interface InnerInterface1 {
     public package1.A.InnerInterface2 lnkInnerInterface2 = null;
 }


select refactor->move them at once into the package1.B class.

The resulting code is this:

package package1;
import package1.A.InnerInterface2;
public class B {
   public interface InnerInterface2 {
   }
   public interface InnerInterface1 {
       public package1.A.InnerInterface2 lnkInnerInterface2 = null;
   }
}
which is wrong.
Comment 1 Markus Keller CLA 2005-07-18 07:02:44 EDT
Tobias, please have a look.
The problem is probably that member interfaces are always implicitly static.
Comment 2 Eclipse Genie CLA 2019-12-01 16:27:31 EST
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.