rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

GroovyParser support for try-with-resources

Open sambsnyd opened this issue 3 years ago • 0 comments

Currently our GroovyParser cannot interpret this form of try-with-resources:

            try(ByteArrayInputStream a = new ByteArrayInputStream("".getBytes())) {
            
            } catch (Exception e) {
            
            }

This form of try-catch is particularly uncommon in Groovy as it wasn't supported by the language at all until recently, so this isn't high priority. If you care about this issue I'm open to pull requests, or ping me on our community slack.

sambsnyd avatar Jun 22 '22 22:06 sambsnyd