You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2017/01/25 22:10:27 UTC
[jira] [Resolved] (CALCITE-1597) Obsolete Util.newInternal and
Throwables.propagate
[ https://issues.apache.org/jira/browse/CALCITE-1597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-1597.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.12.0
Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/603648bc.
> Obsolete Util.newInternal and Throwables.propagate
> --------------------------------------------------
>
> Key: CALCITE-1597
> URL: https://issues.apache.org/jira/browse/CALCITE-1597
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Fix For: 1.12.0
>
>
> Replace:
> * calls to {{Util.newInternal()}} with {{new AssertionError()}}
> * calls to {{Util.newInternal(message)}} with {{new AssertionError(message)}}
> * calls to {{Util.newInternal(message, ex)}} with either {{new AssertionError(message, ex)}} (if the problem is definitely a code bug) or {{new RuntimeException(message, ex)}} (if it is a user or system error)
> Also, remove calls to {{Throwables.propagate}}. It is [deprecated as of Guava 20|https://github.com/google/guava/wiki/Why-we-deprecated-Throwables.propagate].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)