Skip to content

Go: Fix RPC serialization for varargs#7271

Merged
greg-at-moderne merged 2 commits intomainfrom
greg-go-batch-parse-test
Apr 3, 2026
Merged

Go: Fix RPC serialization for varargs#7271
greg-at-moderne merged 2 commits intomainfrom
greg-go-batch-parse-test

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

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

What's changed?

Fixing how varargs are serialized/deserialized for Go.
Adding the missing Varargs field in J.VariableDeclarations.

What's your motivation?

Otherwise it fails in RPC with:

ClassCastException: J$Unary cannot be cast to TypeTree

@greg-at-moderne greg-at-moderne force-pushed the greg-go-batch-parse-test branch from 9d6218c to dcdd730 Compare April 3, 2026 12:23
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 3, 2026 12:32
@greg-at-moderne greg-at-moderne merged commit d51d23f into main Apr 3, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-go-batch-parse-test branch April 3, 2026 12:32
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 3, 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