groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <realblue...@hotmail.com>
Subject try-with-resources statement for Groovy 3
Date Fri, 04 Nov 2016 15:09:30 GMT
Hi all,

      The new parser supports *try-with-resources statement* now. The
related code is on the tryWithResources branch of groovy-parser
project(https://github.com/danielsun1106/groovy-parser/tree/tryWithResources).
In order to keep the same semantic with Java's try-with-resources, the
implementation conforms to *JLS "14.20.3.
try-with-resources"*(https://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html).

      Example codes can be found at
https://github.com/danielsun1106/groovy-parser/blob/tryWithResources/src/test/resources/core/TryWithResources_01x.groovy

      Any thoughts?

Cheers,
Daniel.Sun




--
View this message in context: http://groovy.329449.n5.nabble.com/try-with-resources-statement-for-Groovy-3-tp5736479.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message