| Summary: | [12][quick fix][switch expression] 'Add missing case statements' | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Noopur Gupta <noopur_gupta> |
| Component: | UI | Assignee: | Noopur Gupta <noopur_gupta> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 4.11 | ||
| Target Milestone: | 4.12 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/142449 https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=79cf9b81881fac0e5dd969c2a8bcdbf86602b21f https://git.eclipse.org/r/142478 https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=2ff097fcac0f0c5a5b8e51c1b378e2f8dbe910b6 https://git.eclipse.org/r/142487 https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=a07e7d98b59b701173951c3a500a6bd2e5578de0 https://git.eclipse.org/r/142578 https://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=233a77c5208ecc8d1c38ed91676602c35b128662 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 545120 | ||
public static void bar2(Day day) { int num= switch (day) { case MONDAY, FRIDAY -> 6; case TUESDAY -> 7; case THURSDAY, SATURDAY -> 8; case WEDNESDAY -> 9; }; } - We get the error: A Switch expression should cover all possible values. - We should have a quick fix 'Add missing case statements' similar to switch statements.