Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7796

Make reThrow idiom declare Error return type so callers may use it in a way that compiler knows subsequent code is unreachable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      A spinoff from LUCENE-7792: reThrow can be declared to return an unchecked exception so that callers can choose to use throw reThrow(...) as an idiom to let the compiler know any subsequent code will be unreachable.

        Attachments

        1. LUCENE-7796.patch
          32 kB
          Dawid Weiss
        2. LUCENE-7796.patch
          30 kB
          Dawid Weiss

          Issue Links

            Activity

              People

              • Assignee:
                dweiss Dawid Weiss
                Reporter:
                dweiss Dawid Weiss
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: