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

Bug 547120

Summary: [12][switch expression] Ctrl+Click or F3 does not work with case, default, break
Product: [Eclipse Project] JDT Reporter: Noopur Gupta <noopur_gupta>
Component: UIAssignee: Noopur Gupta <noopur_gupta>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, noopur_gupta, sarika.sinha
Version: 4.12Flags: sarika.sinha: review+
Target Milestone: 4.12 RC1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/142920
https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=69239e274d730439bd878a4c30f1a0b6884ace15
Whiteboard:
Bug Depends on:    
Bug Blocks: 545120    

Description Noopur Gupta CLA 2019-05-09 07:26:59 EDT
public class CC {
	private void foo(Day day) {
		int i1 = switch (day) {
		case SATURDAY:
			break 1;
		case MONDAY:
			break 2;
		default:
			break 0;
		};

		int i2 = switch (day) {
		case SATURDAY -> 1;
		case MONDAY -> {
			break 2;
		}
		default -> 0;
		};
	}
}

enum Day {
	MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Comment 1 Eclipse Genie CLA 2019-05-28 07:21:28 EDT
New Gerrit change created: https://git.eclipse.org/r/142920
Comment 2 Noopur Gupta CLA 2019-05-28 07:24:27 EDT
Sarika, please review for RC1.
Comment 4 Sarika Sinha CLA 2019-05-28 12:05:18 EDT
+1 for RC1.
Comment 5 Noopur Gupta CLA 2019-05-29 07:11:54 EDT
Verified in I20190528-1800.