Skip to content

Groovy: fix parsing of negated new expression#7508

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-paren-not-new
Apr 28, 2026
Merged

Groovy: fix parsing of negated new expression#7508
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-paren-not-new

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

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

What's changed?

Fix Groovy parser behavior for new expressions wrapped with parenthesis with negation, e.g.

!(new String("a").bytes)

What's your motivation?

They currently suffer from idepomtency issues.

@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 19:45
@greg-at-moderne greg-at-moderne merged commit 1b68dc6 into main Apr 28, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 28, 2026
@greg-at-moderne greg-at-moderne deleted the greg-groovy-paren-not-new branch April 28, 2026 19:45
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