drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Rogers (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-5124) Generated Java code methods throw schema change, calling code doesn't catch
Date Sun, 11 Dec 2016 01:49:58 GMT
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)

Mime
View raw message