commit | e3afe444f59d3117fbe9d778120a47c411e2aa99 | [log] [tgz] |
---|---|---|
author | asdf2014 <1571805553@qq.com> | Wed Apr 19 17:00:32 2017 +0800 |
committer | Zhao, Qingwen <qingwzhao@apache.org> | Wed Apr 19 17:00:32 2017 +0800 |
tree | 3d008060aaf719ab3d5e22d74446cf399c49e2d3 | |
parent | b4d07113933aa79e8575715370b08ef79c287444 [diff] |
[EAGLE-1009] Fix `return` inside `finally` block may result in losing exception `return` inside `finally` block will result in losing exception: * If the finally block completes abruptly for reason S, then the try statement completes abruptly for reason S (and the throw of value V is discarded and forgotten). * If the finally block completes abruptly for reason S, then the try statement completes abruptly for reason S (and reason R is discarded). reference: http://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.20.2 https://issues.apache.org/jira/secure/attachment/12863778/FinallyTest.java (https://issues.apache.org/jira/browse/EAGLE-1009) Author: asdf2014 <1571805553@qq.com> Closes #920 from asdf2014/return_inside_finally.