Scala 2.12.21 release planning

This thread is for updates and discussions about the eventual Scala 2.12.21 release.

As of yet, we don’t know anything about the release’s likely timing or contents (except that we’ll likely need to upgrade ASM for the optimizer to support JDK 24).

We can use this thread to ask, propose, discuss.

2 Likes

There is now some pressure to release Scala 2.12.21 in order to ship the ASM upgrade that allows the optimizer to work on JDK 24. (This upgrade is already available in our nightly builds.)

Is anyone aware of anything else that ought to go in the release? If so, please speak up this week.

Nothing else of interest to end users has been merged since 2.12.20.

Work is in progress on adding JDK 24 to our testing matrix; see JDK 24 · Issue #897 · scala/scala-dev · GitHub

I just opened two PRs:

Thanks!

Thank you for bringing this to our attention. Yes, looks like waiting for this makes sense.

JDK 25 is GA now. We don’t yet have a planned date for a 2.12.21 release, but JDK 25 support has been merged on our 2.12.x branch, so users may consider using a nightly build.

3 Likes

Will this also be released with the 2.13.x version that supports JDK25 byte code? Are we expecting weeks or more than a month or two?

1 Like

We haven’t set a date yet. As far as I can know

  • code compiled with 2.12.20 runs fine on JDK 25
  • the 2.12.20 compiler also works fine on Java 25, except when using the optimizer

If someone is blocked, let us know!

1 Like

That’s true, failed when optimizer is enabled

I am not sure I am blocked but I would like to run Java 25 in CI https://github.com/ekrich/sconfig but I have a scalafix setup with scalafix tests and it does not work on on Scala 2.12.20. Scalafix/scalameta has now been updated to 0.14.4 so it works on Scala 2.13.17 and 3.3.6. To confirm you can clone and just run +test while using Java 25.

1 Like