[ 
https://issues.apache.org/jira/browse/EAGLE-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972384#comment-15972384
 ] 

ASF GitHub Bot commented on EAGLE-1009:
---------------------------------------

GitHub user asdf2014 opened a pull request:

    https://github.com/apache/eagle/pull/920

    [EAGLE-1009] Fix losing exception issues

    `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/browse/EAGLE-1009)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/asdf2014/eagle return_inside_finally

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/eagle/pull/920.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #920
    
----
commit d7c2e08b0bac07e3da397fc7843e5bd49db5f896
Author: asdf2014 <1571805...@qq.com>
Date:   2017-04-18T09:16:54Z

    Fix losing exception issues

----


> `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
>              Labels: JDK
>             Fix For: v0.5.0
>
>         Attachments: FinallyTest.java
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> `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)

Reply via email to