Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 203260 - [extract method] allows to extract part of qualified name
Summary: [extract method] allows to extract part of qualified name
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M2   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-13 09:24 EDT by Martin Aeschlimann CLA
Modified: 2007-09-13 09:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2007-09-13 09:24:39 EDT
3.4

In the following code it is possible to extract 'x' from '-b.x'. The result does not compile as the extracted method is created in A.

public class A  {

	public class P {
		int x;
	}
	public void foo() {
		P b= new P();
		int x= -b.x;
	}

}
Comment 1 Martin Aeschlimann CLA 2007-09-13 09:31:27 EDT
fixed > 20070913