Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8586

[PARROT] Support Java 9 ARM blocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.x
    • 3.0.0-alpha-4, 2.6.0-alpha-5
    • Compiler
    • 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

              daniel_sun Daniel Sun
              jespersm Jesper Steen Møller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: