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

Bug 290214

Summary: [push down] push down does not work well with anonymous classes
Product: [Eclipse Project] JDT Reporter: Konstantin Fedorov <konstantin.fedorov>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.6Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Konstantin Fedorov CLA 2009-09-23 02:50:35 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
Build Identifier: 20090621-0832

Push Down refactoring does not work for anonymous types. In code below after pushing A.m() down B class will be updated correctly, however it won't happen for anonymous type in initializer - instead m will go into C class.
class C {
    class A {
    	void m() {}
    }
    
    {
    new A() {};
    }
    
    class B extends A {}
}


Reproducible: Always
Comment 1 Eclipse Genie CLA 2020-02-19 20:02:04 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.