Bug 404705 - [1.8][move member type] Move Type to New File: receiver parameter not updated
Summary: [1.8][move member type] Move Type to New File: receiver parameter not updated
Status: CLOSED DUPLICATE of bug 405270
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Martin Mathew CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-02 05:07 EDT by Martin Mathew CLA
Modified: 2013-09-06 00:05 EDT (History)
1 user (show)

See Also:
manju656: review? (markus.kell.r)


Attachments
Patch. (2.82 KB, patch)
2013-04-09 04:17 EDT, Martin Mathew CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mathew CLA 2013-04-02 05:07:17 EDT
public class TestMoveToFile {
	class InnerClass{
		InnerClass(TestMoveToFile TestMoveToFile.this){
			
		}
	}
}

Invoke "Move Type to New File" refactoring action on InnerClass. The new type is created with compiler error as the constructor still refers to the old receiver parameter.
Comment 1 Martin Mathew CLA 2013-04-09 04:17:45 EDT
Created attachment 229486 [details]
Patch.

During the refactoring "Move Type To New File", the Inner Class constructor's receiver parameters are removed as receiver parameter cannot be part of a normal class constructor.
If any of the instance method in the inner class have receiver parameter, then it remains as it is.
Comment 2 Martin Mathew CLA 2013-09-06 00:05:39 EDT
The issue is handled as part of the fix for bug 405270.

*** This bug has been marked as a duplicate of bug 405270 ***