eagle-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedict Jin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (EAGLE-1009) `return` inside `finally` block will result in losing exception
Date Tue, 18 Apr 2017 09:13:41 GMT
Benedict Jin created EAGLE-1009:
-----------------------------------

             Summary: `return` inside `finally` block will result in losing exception
                 Key: EAGLE-1009
                 URL: https://issues.apache.org/jira/browse/EAGLE-1009
             Project: Eagle
          Issue Type: Bug
          Components: Project Infrastructure
    Affects Versions: v0.4.0
            Reporter: Benedict Jin
             Fix For: v0.5.0
         Attachments: FinallyTest.java

`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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message