You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2017/04/06 21:14:41 UTC

[jira] [Assigned] (DRILL-5124) Generated Java code methods throw schema change, calling code doesn't catch

     [ https://issues.apache.org/jira/browse/DRILL-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Rogers reassigned DRILL-5124:
----------------------------------

    Assignee:     (was: Paul Rogers)

> Generated Java code methods throw schema change, calling code doesn't catch
> ---------------------------------------------------------------------------
>
>                 Key: DRILL-5124
>                 URL: https://issues.apache.org/jira/browse/DRILL-5124
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Paul Rogers
>            Priority: Minor
>
> Most generated code includes methods that throw {{}}. Example:
> {code}
>    public boolean resetValues()
>         throws SchemaChangeException
>     { return true; }
> {code}
> But, most code in Drill that calls the generated methods does not catch the exception. The reason is that the Drill code is compiled against the template which does not declare exceptions:
> {code}
>   public abstract boolean resetValues();
> {code}
> The current behavior becomes an error when trying to compile the code as "Plain-Old Java" (DRILL-5052). The behavior is an error even otherwise as it causes the fragment to fail with an uncaught exception.



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