lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7796) Make reThrow idiom declare Error return type so callers may use it in a way that compiler knows subsequent code is unreachable
Date Fri, 28 Apr 2017 10:18:04 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15988592#comment-15988592
] 

ASF subversion and git services commented on LUCENE-7796:
---------------------------------------------------------

Commit 3866c72fe9f6753b491099c961200377567a0b08 in lucene-solr's branch refs/heads/branch_6x
from [~dawid.weiss]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3866c72 ]

LUCENE-7796: Make IOUtils.reThrow idiom declare Error return type so
callers may use it in a way that compiler knows subsequent code is
unreachable. reThrow is now deprecated in favor of IOUtils.rethrowAlways.


> Make reThrow idiom declare Error return type 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), 6.6
>
>         Attachments: LUCENE-7796.patch, LUCENE-7796.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message