-
Notifications
You must be signed in to change notification settings - Fork 853
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
Lambdas with "final var" arguments result in error: did not generate token "final" #959
Comments
bwRavencl
added a commit
to bwRavencl/ControllerBuddy
that referenced
this issue
Aug 22, 2023
…ntir-java-format The issue stems from google-java-format: google/google-java-format#959 This commit should be reverted once this bug is fixed in palantir-java-format!
copybara-service bot
pushed a commit
that referenced
this issue
Sep 12, 2023
The start position of `final` variable is apparently after the token for `final`, this works around that by inlining a call to `visitVariable` and dropping the `sync` call that asserts the start position of the current node matches the next token. Fixes #959 PiperOrigin-RevId: 564460308
bwRavencl
added a commit
to bwRavencl/palantir-java-format
that referenced
this issue
Sep 12, 2023
Backported the upstream fix of @cushon Issue: google/google-java-format#959 Commit: google/google-java-format@1fe6789
bwRavencl
added a commit
to bwRavencl/palantir-java-format
that referenced
this issue
Sep 12, 2023
Backported the upstream fix of @cushon Issue: google/google-java-format#959 Commit: google/google-java-format@1fe6789
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Processing lambda functions with arguments declared with
final var
produces:error: did not generate token "final"
Example Code:
The text was updated successfully, but these errors were encountered: