Arne Vajhøj said:
The feature of saving lines of code at the expense of making
programming errors runtime errors instead of compile tile errors
is neither in the Java spirit or an advantage in my opinion.
In this particular context (namely if it were 15 years earlier),
usage of "continue;" for cross-"case" proceeding (with automatic
breaking on lack of that statement) might have been an alternative...
.... but a rather tedious one in those cases where several switch-
values are supposed to run exactly the same code, unless some special
case was made for immediately subsequent case labels.
Btw., As a contrast, Tcl has separate switch-arms with only very
specific fall-through: Any switch-arm is either a block of code
without fall-through or a special marker that means "use next
non-marker block of code found".
There is no direct way to fall through from one real block to any
other. Though, of course, one can place the switch into a loop
and reiterate it with the switch variable appropriately modified.