Skip to content
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

Add support for Java 21 #19701

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

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

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