Skip to content

GroovyParser support for try-with-resources  #1945

@sambsnyd

Description

@sambsnyd

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions