Bug 395567 - [move member type] Move Type to New File modifies method invocation, which yields compilation error
Summary: [move member type] Move Type to New File modifies method invocation, which yi...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-02 17:03 EST by Milos Gligoric CLA
Modified: 2023-07-10 12:09 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.