Skip to content

Groovy: fix parsing of variables typed as generics class parameter#7519

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-type-param-var
Apr 29, 2026
Merged

Groovy: fix parsing of variables typed as generics class parameter#7519
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-type-param-var

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

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

What's changed?

Fix Groovy parser for parsing variables whose type is the current class' type parameter, e.g.

              class TaskRunner<E> {
                  void run() {
                      E task = null
                  }
              }

What's your motivation?

It currently suffers from idempotency issues.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 29, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 29, 2026 11:17
@greg-at-moderne greg-at-moderne merged commit 2e73374 into main Apr 29, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-groovy-type-param-var branch April 29, 2026 11:17
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 29, 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