Proposal: Automatic Resource Management

Joshua Bloch jjb at google.com
Wed Sep 2 08:50:26 PDT 2009


Paul,
I believe that this is the most current version:
http://docs.google.com/View?id=ddv8ts74_3fs7483dp .

     Josh

On Wed, Sep 2, 2009 at 8:40 AM, Paul Benedict <pbenedict at apache.org> wrote:

> Sean,
>
> >> In addition to table.iterator() being disposed, if Row implements
> >> Disposable, then each row would be disposed after each iteration.  The
> >> variable table would not be disposed unless the following syntax is
> used:
> >>
> >> try (Table table = new Table("Ex"); Row row: table) {
> >> }
>
> How about this:
>
> try (Table table = new Table("Ex")) {
>    for (Row row : table) {
>    }
> }
>
> Wouldn't this allow the table to be automatically be disposed, plus
> automatically dispose each row?
>
> PS: Josh, didn't you once publish your ARM proposal under
> http://docs.google.com? I may be wrong, but I thought you kept the
> most-current copy on the web somewhere.
>
> Paul
>
>



More information about the coin-dev mailing list