Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318609

Summary: [extract method] Doesn't consider enum type as static
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: 3.7 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix none

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.