-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: 1.2.0
-
Component/s: tools
-
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
-