javac improperly rejects the following program.
class Tnewflow {
void f(int x) {
final int i;
L: {
if (x==0) break L;
try {
i = 3;
break L;
} finally {
return;
}
}
i = 2;
}
}
class Tnewflow {
void f(int x) {
final int i;
L: {
if (x==0) break L;
try {
i = 3;
break L;
} finally {
return;
}
}
i = 2;
}
}
- relates to
-
JDK-4718379 16.2.5: Clarify DU/DA for labeled statements with break
- Open