[
https://issues.apache.org/jira/browse/LUCENE-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated LUCENE-7796:
-----------------------------
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.
was: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.
Summary: Make reThrow idiom declare return type of Throwable so callers
may use it in a way that compiler knows subsequent code is unreachable (was:
Make reThrow idiom return Throwable to enforce code unreachability)
clarified summary & description
> Make reThrow idiom declare return type of Throwable so callers may use it in
> a way that compiler knows subsequent code is unreachable
> -------------------------------------------------------------------------------------------------------------------------------------
>
> 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 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]