-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.0
-
generic
-
generic
This program should fail to compile but in fact succeeds:
class badswitch {
void f(int e) {
final int f;
switch (e) {
case 1:
f = 2;
break;
}
f = 3;
}
}
class badswitch {
void f(int e) {
final int f;
switch (e) {
case 1:
f = 2;
break;
}
f = 3;
}
}
- relates to
-
JDK-4030396 Definite un-assignment check fails on fall-through from switch case.
-
- Closed
-