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 2016/10/06 19:09:20 UTC

[jira] [Updated] (CALCITE-1416) Make classes implement AutoCloseable where possible

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

Julian Hyde updated CALCITE-1416:
---------------------------------
    Labels: newbie  (was: )

> Make classes implement AutoCloseable where possible
> ---------------------------------------------------
>
>                 Key: CALCITE-1416
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1416
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>              Labels: newbie
>
> If a class has a close method, make it implement {{AutoCloseable}}, so it can be used in try-with-resources. Some possible classes (they have a {{close}} method):
> * org.apache.calcite.tools.Planner
> * org.apache.calcite.interpreter.Interpreter
> * org.apache.calcite.interpreter.Source
> * Hook.Closeable (we can ditch JDK 1.6 support)
> * SqlTesterImpl



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)