GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Lambdas with "final var" arguments result in error: did not generate token "final" · Issue #959 · google/google-java-format

Lambdas with "final var" arguments result in error: did not generate token "final" #959

New issue
Copy link
New issue
Copy link
Closed
Closed
Lambdas with "final var" arguments result in error: did not generate token "final"#959
Copy link

Description

@bwRavencl
bwRavencl
opened on Aug 22, 2023
Issue body actions

Processing lambda functions with arguments declared with final var produces: error: did not generate token "final"

Example Code:

class Test {

    public void test() {
        new File(".").listFiles((final var dir, final var name) -> true);
    }
}
$ java -jar google-java-format-1.17.0-all-deps.jar Test.java
Test.java:4:41: error: did not generate token "final"

Activity

  1. bwRavencl
    added a commit that references this issue on Aug 22, 2023

    Remove 'final var' from lambda arguments to work around a bug in pala…

    d397d92
  2. copybara-service
    added a commit that references this issue on Sep 12, 2023

    Handle `final var` lambda variables

    75807fc
  3. copybara-service
    closed this as completedin 1fe6789on Sep 12, 2023
  4. bwRavencl
    added 2 commits that reference this issue on Sep 12, 2023

    Handle `final var` lambda variables

    77bce6e

    Handle `final var` lambda variables

    db9d81b
  5. jrguzman-ms
    added a commit that references this issue on Feb 3, 2024

    Handle `final var` lambda variables

    1fe6789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.