Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.x
    • Fix Version/s: 3.0.0-alpha-4, 2.6.0-alpha-5
    • Component/s: Compiler
    • Labels:
      None

      Description

      Java 9 introduces a ARM-with-existing-resources construct, like this:

      OutputStream stream = foo();
      try (stream) {
         stream.write(whatever());
      }
      

      In other words, the resource need not be in the form of an initialization, but can just be a variable.

      Now that we have ARM in Groovy, we should be able to add this form as well.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daniel_sun Daniel Sun
                Reporter:
                jespersm Jesper Steen Møller
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: