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

[CALCITE-5737] Support jdk21 and jdk22 #3793

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

snuyanzin
Copy link
Contributor

@snuyanzin snuyanzin commented May 19, 2024

Adds jdk21 and 22 to ci
The PR also adds deprecations to forbiddenAPI config for URL constructor which became deprecated since jdk20

@@ -792,6 +808,9 @@ allprojects {
inputs.property("java.vm.version", System.getProperty("java.vm.version"))
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:deprecation")
// JDK 1.8 is deprecated https://bugs.openjdk.org/browse/JDK-8173605
// and now it requires -Xlint:-options to mute warnings about its deprecation
options.compilerArgs.add("-Xlint:-options")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach similar to one done within openJDK openjdk/jdk#10135

Copy link
Member

@caicancai caicancai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure you've tested it all locally

@snuyanzin snuyanzin force-pushed the jdk21 branch 4 times, most recently from 50e29f5 to 784dfc6 Compare May 25, 2024 09:39
@snuyanzin
Copy link
Contributor Author

I'm sure you've tested it all locally

yep, exactly, however the main test is ci since locally I have only one OS and on ci there are different

@snuyanzin
Copy link
Contributor Author

I rebased the PR since gradle8 support was merged

@snuyanzin
Copy link
Contributor Author

I will merge tomorrow if there is no objections

Update dependencies
asm from 7.2 to 9.6
byte-buddy from 1.9.3 to 1.14.15
forbiddenapis from 3.5.1 to 3.7
mockito from 2.23.4 to 3.12.4
Copy link

sonarcloud bot commented May 26, 2024

@snuyanzin snuyanzin merged commit 09c0ef1 into apache:main May 26, 2024
19 checks passed
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.

2 participants