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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • None
    • 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
          30 kB
          Dawid Weiss
        2. LUCENE-7796.patch
          32 kB
          Dawid Weiss

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: