[jira] [Created] (GROOVY-8586) Support Java 9 ARM blocks

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (GROOVY-8586) Support Java 9 ARM blocks

JIRA jira@apache.org
Jesper Steen Møller created GROOVY-8586:

             Summary: Support Java 9 ARM blocks
                 Key: GROOVY-8586
                 URL: https://issues.apache.org/jira/browse/GROOVY-8586
             Project: Groovy
          Issue Type: Improvement
          Components: Compiler
    Affects Versions: 3.x
            Reporter: Jesper Steen Møller

Java 9 introduces a ARM-with-existing-resources construct, like this:
OutputStream stream = foo();
try (stream) {
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.


This message was sent by Atlassian JIRA