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

Allow to build Scala Native on JDK 21 #3492

Merged
merged 7 commits into from Sep 20, 2023

Conversation

WojciechMazur
Copy link
Contributor

  • Remove no longer existing Thread.Builder.allowSetThreadLocals which didn't made it to stable release and is available only under preview API (JDK 19-20)
  • Add stubs for Sequential Collections - don't introduce any new methods, but match the types hierarchy with the JDK.
  • Add CI job for testing JDK 21 instead of JDK 20 - only Scala 2.13, Scala 3 does not yet compile

@WojciechMazur WojciechMazur merged commit 4eb7261 into scala-native:main Sep 20, 2023
39 checks passed
@WojciechMazur WojciechMazur deleted the build/jdk-21 branch September 20, 2023 08:08
WojciechMazur added a commit to WojciechMazur/scala-native that referenced this pull request Oct 4, 2023
* `Thread.Builder.allowSetThreadLocals` didn't made it to stable release, and is only available in JDK 19-20 until --preview flag. Remove it's implementation and tests referencing this no longer existing API
* Update CI to test against JDK 21 instead of JDK 20 with --enable-preview flags
* Don't warn when accessing `Thread.getId()` which is deprecated in latest JDK versions
* Add stubs for JDK 21 Sequential Collections to allow for linkling when using JDK 21+
* CI - Test JDK 21 only on Scala 2.13, compilation fails in Scala 3
WojciechMazur added a commit to WojciechMazur/scala-native that referenced this pull request Oct 13, 2023
* `Thread.Builder.allowSetThreadLocals` didn't made it to stable release, and is only available in JDK 19-20 until --preview flag. Remove it's implementation and tests referencing this no longer existing API
* Update CI to test against JDK 21 instead of JDK 20 with --enable-preview flags
* Don't warn when accessing `Thread.getId()` which is deprecated in latest JDK versions
* Add stubs for JDK 21 Sequential Collections to allow for linkling when using JDK 21+
* CI - Test JDK 21 only on Scala 2.13, compilation fails in Scala 3

(cherry picked from commit 4eb7261)
WojciechMazur added a commit that referenced this pull request Oct 13, 2023
* `Thread.Builder.allowSetThreadLocals` didn't made it to stable release, and is only available in JDK 19-20 until --preview flag. Remove it's implementation and tests referencing this no longer existing API
* Update CI to test against JDK 21 instead of JDK 20 with --enable-preview flags
* Don't warn when accessing `Thread.getId()` which is deprecated in latest JDK versions
* Add stubs for JDK 21 Sequential Collections to allow for linkling when using JDK 21+
* CI - Test JDK 21 only on Scala 2.13, compilation fails in Scala 3

(cherry picked from commit 4eb7261)
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.

None yet

1 participant