You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2016/05/27 19:53:12 UTC

[jira] [Created] (ACCUMULO-4318) Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable

Keith Turner created ACCUMULO-4318:
--------------------------------------

             Summary: Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable
                 Key: ACCUMULO-4318
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4318
             Project: Accumulo
          Issue Type: Improvement
            Reporter: Keith Turner
            Assignee: Keith Turner
             Fix For: 1.8.0


BatchWriter, ConditionalWriter, Scanner, and BatchScanner all have close Methods.  Howerver because they do not implement AutoCloseable they can not be used with try-with-resources.

It would be simple to add AutoCloseable to all of these.  I think this change should only be made in a minor release because it allows writing code that will not work with older versions.





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