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

Bug 545988

Summary: [12] Add Missing Case statements add case statements with ":"
Product: [Eclipse Project] JDT Reporter: Sarika Sinha <sarika.sinha>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: noopur_gupta
Version: 4.12   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 545120    

Description Sarika Sinha CLA 2019-04-01 02:01:11 EDT
With Build id: I20190331-1800,
switch (day) {
		    case MONDAY  ->System.out.println("Start of the Week");
		    case SATURDAY, SUNDAY -> System.out.println("End of the Week");
	    };

And add Missing Case statements results to :
 switch (day) {
		    case MONDAY  ->System.out.println("Start of the Week");
		    case SATURDAY, SUNDAY -> System.out.println("End of the Week");
		case FRIDAY:
			break;
		case THURSDAY:
			break;
		case TUESDAY:
			break;
		case WEDNESDAY:
			break;
		default:
			break;
	    };

Add Default case works well.
Comment 1 Noopur Gupta CLA 2019-04-01 02:12:03 EDT

*** This bug has been marked as a duplicate of bug 545259 ***