< prev index next >
test/langtools/tools/javac/diags/examples/InvalidYieldWarning.java
Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD
*** 20,30 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.warn.invalid.yield
! // options: --source ${jdk.version}
class BreakComplexValueNoSwitchExpressions {
void t() {
while (true) {
yield(1, 2);
--- 20,30 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.warn.invalid.yield
! // options: -Xlint:-options --source 13
class BreakComplexValueNoSwitchExpressions {
void t() {
while (true) {
yield(1, 2);
< prev index next >