Bug 395567

Summary: [move member type] Move Type to New File modifies method invocation, which yields compilation error
Product: [Eclipse Project] JDT Reporter: Milos Gligoric <milos.gligoric>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, fpahl, manju656
Version: 4.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Milos Gligoric CLA 2012-12-02 17:03:00 EST
Steps to reproduce:
1. Invoke "Move Type to new File" on "C3" in code below
2. Newly created file does not compile ("moveTypeToNewFileBug3 cannot be resolved or is not a field")

class MoveTypeToNewFileBug3 extends ArrayList {
    // Invoke "Move Type to New File" on "C3"
    static class C3 {
        void f() {
            new ArrayList() {
                void g() {
                    size();
                }
            };
        }
    }
}

(Thanks to Yilong Li for helping with the bug report.)
Comment 1 Martin Mathew CLA 2012-12-24 03:00:13 EST
Issue is reproducible using I20121210-0800. Refactoring results in compilation error.
Comment 2 Eclipse Genie CLA 2019-03-18 03:16:14 EDT
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.
Comment 3 Dani Megert CLA 2019-03-22 12:28:37 EDT
Still broken in 4.11.
Comment 4 Eclipse Genie CLA 2021-03-12 14:42:29 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.
Comment 5 Felix Pahl CLA 2021-07-19 07:50:47 EDT
Still broken in 4.19 (Version: 2021-03 (4.19.0), Build id: 20210312-0638).
Comment 6 Eclipse Genie CLA 2023-07-10 12:09:02 EDT
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.