jdk-24/test/langtools/tools/javac/switchexpr/EmptySwitch.out
Jan Lahoda e81d3fa8c3 8226510: No compilation error when switch expression has no result expressions
Ensure a compile-time error is produced when there are no result expressions in an switch expression.

Reviewed-by: vromero
2019-06-27 10:39:27 +02:00

9 lines
443 B
Plaintext

EmptySwitch.java:33:10: compiler.err.switch.expression.empty
EmptySwitch.java:35:10: compiler.err.switch.expression.no.result.expressions
EmptySwitch.java:38:10: compiler.err.switch.expression.no.result.expressions
EmptySwitch.java:44:9: compiler.err.switch.expression.completes.normally
EmptySwitch.java:47:26: compiler.err.rule.completes.normally
- compiler.note.preview.filename: EmptySwitch.java
- compiler.note.preview.recompile
5 errors