Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.x
-
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
- Dependency
-
GROOVY-6336 [PARROT] Support Java 7 ARM blocks
- Closed
- links to