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 2016/12/11 01:49:58 UTC

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

Paul Rogers created DRILL-5124:
----------------------------------

             Summary: 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
            Assignee: 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.4#6332)