Skip to content

Conversation

hamzaremmal
Copy link
Member

@hamzaremmal hamzaremmal commented Feb 15, 2024

Related to #18873
Related to #19703

See: https://stackoverflow.com/questions/65870155/what-is-the-meaning-of-the-classname-from-a-lambda-class-in-java

Running JShell with Java 17:
```sh
|  Welcome to JShell -- Version 17.0.7
|  For an introduction type: /help intro

jshell> Function<Integer, Integer> x = (Integer x) -> x;
x ==> $Lambda$39/0x0000000800c09000@377dca04

jshell> Function<Integer, Integer> x = (Integer x) -> x + 1;
x ==> $Lambda$40/0x0000000800c09448@21b8d17c

jshell>
```

Running JShell with Java 21:
```sh
|  Welcome to JShell -- Version 21
|  For an introduction type: /help intro

jshell> Function<Integer, Integer> x = (Integer x) -> x;
x ==> $Lambda/0x000000080100aa00@27fa135a

jshell> Function<Integer, Integer> x = (Integer x) -> x + 1;
x ==> $Lambda/0x000000080100a400@2b71fc7e

jshell>
```
@hamzaremmal
Copy link
Member Author

The following tests are blocking the migration and unless we run them with Java 17. There is nothing much to do.

  • tests/run/backwardsCompat-implicitParens
  • tests/pos/alphanumeric-infix-operator-compat

@hamzaremmal hamzaremmal closed this Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant