Java: Fixed false positive "unreachable statement" in the control flow analysis (IDEA-164442)

This commit is contained in:
Pavel Dolgov
2016-11-30 13:04:34 +03:00
parent 09b3348d68
commit 2f5e954770
2 changed files with 69 additions and 28 deletions
@@ -488,4 +488,19 @@ class ManyExitsFromTry {
}
}
}
}
class BreakFromCatchInPresenceOfFinally {
String f() {
while (true) {
try {
return "try";
}
catch (Exception e) {
break;
}
finally {}
}
return "end"; // reachable
}
}