You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (JIRA)" <ji...@apache.org> on 2017/04/21 07:19:04 UTC

[jira] [Created] (LUCENE-7796) Make reThrow idiom return Throwable to enforce code unreachability

Dawid Weiss created LUCENE-7796:
-----------------------------------

             Summary: Make reThrow idiom return Throwable to enforce code unreachability
                 Key: LUCENE-7796
                 URL: https://issues.apache.org/jira/browse/LUCENE-7796
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Dawid Weiss
            Assignee: Dawid Weiss
            Priority: Trivial
             Fix For: 6.x, master (7.0)


A spinoff from LUCENE-7792: reThrow can return an unchecked exception so that one can use {{throw reThrow(...)}} idiom to let the compiler know subsequent code would be unreachable.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org