Skip to content

Go: default case in switch parsed same as in Java - #8480

Merged
greg-at-moderne merged 1 commit into
mainfrom
greg-go-case-default-label
Aug 12, 2026
Merged

Go: default case in switch parsed same as in Java#8480
greg-at-moderne merged 1 commit into
mainfrom
greg-go-case-default-label

Conversation

@greg-at-moderne

@greg-at-moderne greg-at-moderne commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What's changed?

Fixing how we parse Go default cases in switches.
Now parsing the same as in Java - i.e. a case with default as the (artificial) identifier.

What's your motivation?

To fix some of the Java recipes in rewrite-static-analysis (and probably others) crashing on Go code.

@greg-at-moderne greg-at-moderne self-assigned this Aug 12, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Aug 12, 2026
@greg-at-moderne
greg-at-moderne marked this pull request as ready for review August 12, 2026 14:23
@greg-at-moderne
greg-at-moderne merged commit 81d984a into main Aug 12, 2026
1 check passed
@greg-at-moderne
greg-at-moderne deleted the greg-go-case-default-label branch August 12, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant