[ https://issues.apache.org/jira/browse/GROOVY-8586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482593#comment-16482593 ]
ASF GitHub Bot commented on GROOVY-8586: ---------------------------------------- GitHub user danielsun1106 opened a pull request: https://github.com/apache/groovy/pull/714 GROOVY-8586: Support Java 9 ARM blocks You can merge this pull request into a Git repository by running: $ git pull https://github.com/danielsun1106/groovy GROOVY-8586 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/714.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #714 ---- commit b7c77c2c4444817b148c1d30462ba3e7f74718c2 Author: Daniel Sun <realbluesun@...> Date: 2018-05-21T14:59:59Z GROOVY-8586: Support Java 9 ARM blocks commit 5329b60eb13e0174559fa00778aabd0d294583ef Author: Daniel Sun <realbluesun@...> Date: 2018-05-21T15:02:14Z Add license header ---- > 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 > Assignee: Daniel Sun > Priority: Minor > > Java 9 introduces a ARM-with-existing-resources construct, like this: > {code:java} > OutputStream stream = foo(); > try (stream) { > stream.write(whatever()); > } > {code} > 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 (v7.6.3#76005)