Uploaded image for project: 'Eagle'
  1. Eagle
  2. EAGLE-1009

`return` inside `finally` block may result in losing exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: v0.4.0
    • Fix Version/s: v0.5.0
    • Component/s: Project Infrastructure
    • Labels:

      Description

      `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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                benedict jin Benedict Jin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified