You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2018/05/15 00:06:00 UTC

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

     [ https://issues.apache.org/jira/browse/GROOVY-8586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sun reassigned GROOVY-8586:
----------------------------------

    Assignee: Daniel Sun

> 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)