[ 
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)

Reply via email to