Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 570245 - [16] No option to refactor rename local enums
Summary: [16] No option to refactor rename local enums
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.19   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: BETA J16   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact: Kalyan Prasad Tatavarthi CLA
URL:
Whiteboard:
Keywords:
Depends on: 570248
Blocks: 568025
  Show dependency tree
 
Reported: 2021-01-11 07:13 EST by Vikas Chandra CLA
Modified: 2021-01-22 10:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2021-01-11 07:13:09 EST
public class X2 { 
	public static void main(String[] args) {
     enum Y1 { 
		
		BLEU,
		BLANC,
		ROUGE;
		
		public static void main(String[] args) {
			for(Y1 y: Y1.values()) {
				System.out.print(y);
			}
		}
		
	  }
	  Y1.main(args);
	}
}

I want to refactor rename Y1 to Y2 but it is not possible.
Also selecting Y1's declaration doesn't select the other references.
Comment 1 Vikas Chandra CLA 2021-01-11 07:16:34 EST
may be related to Bug 570246
Comment 2 Kalyan Prasad Tatavarthi CLA 2021-01-22 06:27:50 EST
Fixed as a result of fix for bug 570248
Comment 3 Noopur Gupta CLA 2021-01-22 07:42:42 EST

*** This bug has been marked as a duplicate of bug 570248 ***
Comment 4 Kalyan Prasad Tatavarthi CLA 2021-01-22 10:10:31 EST
Removing the duplicate because this is a JDT UI scenario that needs to be verified. The bug 570248 is jdt core bug.