Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groovy parser does not correctly handle variables with nested type parameters. #4702

Closed
sambsnyd opened this issue Nov 23, 2024 · 0 comments · Fixed by #4707
Closed

Groovy parser does not correctly handle variables with nested type parameters. #4702

sambsnyd opened this issue Nov 23, 2024 · 0 comments · Fixed by #4707
Assignees
Labels
bug Something isn't working

Comments

@sambsnyd
Copy link
Member

sambsnyd commented Nov 23, 2024

When we attempt to parse:

class A {
    def map = new HashMap<String, List<String>>()
}

What we actually get is:

class A {
    def map = new HashMap<String, List<String>()>()
}

Reproduced in VariableDeclarationsTest.nestedTypeParameters()

@sambsnyd sambsnyd added the bug Something isn't working label Nov 23, 2024
knutwannheden added a commit that referenced this issue Nov 23, 2024
@timtebeek timtebeek moved this to In Progress in OpenRewrite Nov 23, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants