Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318609 - [extract method] Doesn't consider enum type as static
Summary: [extract method] Doesn't consider enum type as static
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 10:28 EDT by Markus Keller CLA
Modified: 2010-08-03 06:23 EDT (History)
1 user (show)

See Also:


Attachments
Fix (3.72 KB, patch)
2010-07-01 10:28 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2010-07-01 10:28:00 EDT
Created attachment 173222 [details]
Fix

HEAD

Extract Method refactoring doesn't consider enum type as static:

public class A_test1058 {
	private enum B {
		X, Y;
		
		private void extracted() {
			new Runnable() {
				public void run() {
					System.out.println(/*[*/2 + /**/ 3/*]*/);
				}
			}.run();
		}
	}
}
Comment 1 Markus Keller CLA 2010-07-01 10:28:43 EDT
Fixed in HEAD.
Comment 2 Dani Megert CLA 2010-08-03 06:23:09 EDT
Verified in I20100802-1800.