Skip to content

Groovy: fix parsing of a dynamic map key with parens#7485

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-dynamic-map-key
Apr 28, 2026
Merged

Groovy: fix parsing of a dynamic map key with parens#7485
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-dynamic-map-key

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Apr 28, 2026

What's changed?

Fixing the Groovy parser to handle dynamic keys with parens (which are at least sometimes required), e.g.

              writeProperties((Defaults.KEY): "value")

What's your motivation?

The parser would fail with StringIndexOutOfBoundsException

@greg-at-moderne greg-at-moderne self-assigned this Apr 28, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 28, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 28, 2026 09:51
@greg-at-moderne greg-at-moderne merged commit 63a6552 into main Apr 28, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-groovy-dynamic-map-key branch April 28, 2026 09:51
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant