Name: mc57594 Date: 02/07/97
14.9 requires that all BlockStatements in a SwitchBlock are
preceded by SwitchLabels. Your compiler does not require this, instead it
allows the block to begin with unlabelled statements. E.g.:
class X {
{
switch (0) {
int x = 5;
}
}
}
======================================================================
- duplicates
-
JDK-4033874 Switch implemented incorrectly
-
- Closed
-
-
JDK-1240397 'switch' statement allows statements without 'case' in switch block
-
- Closed
-