--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Flow.java Wed Jul 05 18:15:28 2017 +0200
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Flow.java Fri Jul 13 12:58:50 2012 +0100
@@ -746,6 +746,7 @@
pendingExits = prevPendingExits;
alive = true;
scanStat(tree.finalizer);
+ tree.finallyCanCompleteNormally = alive;
if (!alive) {
// discard exits and exceptions from try and finally
thrown = chk.union(thrown, thrownPrev);
@@ -764,7 +765,6 @@
}
alive = aliveEnd;
}
- tree.finallyCanCompleteNormally = alive;
} else {
thrown = chk.union(thrown, chk.diff(thrownInTry, caughtInTry));
alive = aliveEnd;