On 04.11.2016 16:09, Daniel.Sun wrote:
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?

you should rewrite that as proper test cases plus one in which you check r1 inside the try-block. Nested versions of trys with ressoures are also of interest.

And I assume the implementatio is totally missing, yes?

bye Jochen

Reply via email to