| Summary: | [reorg] move of inner interfaces results in incompilable code [refactoring] | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Alexander Pavlov <Alexander.Pavlov> |
| Component: | UI | Assignee: | 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 | ||
Tobias, please have a look. The problem is probably that member interfaces are always implicitly static. 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. |
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.