Community
Participate
Working Groups
Build ID: I20070222-0951 Steps To Reproduce: Push down field on the following: class A { int f; } class B extends A { void m() { new A().f = 0; } } Yields the following refactored code: class A { } class B extends A { int f; void m() { new A().f = 0; } } Compilation error appears due to "new A().f = 0;" since A no longer contains the field. This should have been found in refactoring preconditions. Probably related to bug #31862. More information:
(In reply to comment #0) Bug also appears when f is referenced through "super.f".
*** Bug 235120 has been marked as a duplicate of this bug. ***
*** Bug 319929 has been marked as a duplicate of this bug. ***
*** Bug 434862 has been marked as a duplicate of this bug. ***
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.
Still a problem in 4.13 M3.
Still a problem in 4.21