Community
Participate
Working Groups
Currently the Switch case expression adds the code as : switch (key) { case value: break type; default: throw new IllegalArgumentException("Unexpected value: " + key); } I was expecting : switch (key) { case value: { yield type; } default: throw new IllegalArgumentException("Unexpected value: " + key); } As with ":" there has to be a block statement for switch expression.
New Gerrit change created: https://git.eclipse.org/r/149157
Gerrit change https://git.eclipse.org/r/149157 was merged to [BETA_JAVA13]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=fc4d1911858c3a53b7e7087af1b71cafed6263dc