From 1c1cf88a4c0e84dc0f1ff2f48d89d3e689bdbc0a Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 25 Nov 2025 12:07:59 +0100 Subject: [PATCH 1/4] 2.12.21 release notes draft --- 2.12.21.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 2.12.21.md diff --git a/2.12.21.md b/2.12.21.md new file mode 100644 index 0000000000..7b585769f8 --- /dev/null +++ b/2.12.21.md @@ -0,0 +1,54 @@ +# Scala 2.12.21 (DRAFT) + +The Scala team at Akka is pleased to announce Scala 2.12.21. + +This release is compatible with JDK 25 LTS and also introduces preliminary support for JDK 26. + +The following are highlights of this release: + +### JDK 25 support + +... + +### JDK 26 support + +... + +### New `@uncheckedOverride` annotation + +The new `@uncheckedOverride` annotation is equivalent to the `override` keyword, except that it allows to override nothing. This is useful when cross-building: a method may override or not, depending on the version of some dependency. [#11179](https://github.com/scala/scala/pull/11179) + +### GPG key change + +This release is signed with a different GPG key than previous Scala 2 releases. The new key is the same one used by Scala 3. [#11158](https://github.com/scala/scala-dev/issues/918) + +### More changes + +For the complete 2.12.21 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.12.21) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.12.21). + +## Compatibility + +As usual for our minor releases, Scala 2.12.21 is [binary-compatible](https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html) with the whole Scala 2.12 series. + +Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration advice from the compiler. + +## Contributors + +A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent. + +This release was brought to you by 8 contributors, according to `git shortlog -sn --no-merges @ ^v2.12.20 ^2.12.x`. Thank you ... + +Thanks to [Akka](https://akka.io) for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala. + +## Scala 2.12 notes + +The [release notes for Scala 2.12.0](https://github.com/scala/scala/releases/v2.12.0) have important information applicable to the whole 2.12 series. + +## Obtaining Scala + +Scala releases are available through a variety of channels, including (but not limited to): + +* Bump the `using scala` setting in your Scala-CLI project +* Bump the `scalaVersion` setting in your sbt or Mill project +* Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.12.21.html) +* Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.12.21) From 84322b4f9486f652b2777444b15fd93be9fce7dc Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 25 Nov 2025 12:43:35 +0100 Subject: [PATCH 2/4] git log --- 2.12.21.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.12.21.md b/2.12.21.md index 7b585769f8..83fb0eabae 100644 --- a/2.12.21.md +++ b/2.12.21.md @@ -16,7 +16,7 @@ The following are highlights of this release: ### New `@uncheckedOverride` annotation -The new `@uncheckedOverride` annotation is equivalent to the `override` keyword, except that it allows to override nothing. This is useful when cross-building: a method may override or not, depending on the version of some dependency. [#11179](https://github.com/scala/scala/pull/11179) +The new `@uncheckedOverride` annotation is equivalent to the `override` keyword, except that it allows to override nothing. This is useful when cross-building: a method may override or not, depending on the version of some dependency. [#11175](https://github.com/scala/scala/pull/11175) ### GPG key change @@ -36,7 +36,7 @@ Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration a A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent. -This release was brought to you by 8 contributors, according to `git shortlog -sn --no-merges @ ^v2.12.20 ^2.12.x`. Thank you ... +This release was brought to you by 8 contributors, according to `git shortlog -sn --no-merges @ ^v2.12.20`. Thank you Seth Tisue, Lukas Rytz, A. P. Marki, Friendseeker, Matthias Kurz, NthPortal, Philippus Baalman, Scala Steward, dependabot[bot]. Thanks to [Akka](https://akka.io) for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala. From d17dee6c0fd3661841310323032d8b23c892e981 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 25 Nov 2025 15:54:03 +0100 Subject: [PATCH 3/4] updates --- 2.12.21.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/2.12.21.md b/2.12.21.md index 83fb0eabae..3d5b8a094f 100644 --- a/2.12.21.md +++ b/2.12.21.md @@ -6,13 +6,11 @@ This release is compatible with JDK 25 LTS and also introduces preliminary suppo The following are highlights of this release: -### JDK 25 support +### JDK 25 and 26 support -... - -### JDK 26 support - -... +- Compiling on JDK 25 is now supported [#11028](https://github.com/scala/scala/pull/11028) +- Compiling on JDK 26 is also supported [#11172](https://github.com/scala/scala/pull/11172) + - Note: compilation of `Ordering` subclasses (overriding `min` / `max`) may fail on Java 26, see [comment on #11175](https://github.com/scala/scala/pull/11175#issuecomment-3542497701) ### New `@uncheckedOverride` annotation @@ -24,7 +22,7 @@ This release is signed with a different GPG key than previous Scala 2 releases. ### More changes -For the complete 2.12.21 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.12.21) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.12.21). +For the complete 2.12.21 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged+-label%3Ainternal+milestone%3A2.12.21) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.12.21). ## Compatibility @@ -36,7 +34,7 @@ Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration a A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent. -This release was brought to you by 8 contributors, according to `git shortlog -sn --no-merges @ ^v2.12.20`. Thank you Seth Tisue, Lukas Rytz, A. P. Marki, Friendseeker, Matthias Kurz, NthPortal, Philippus Baalman, Scala Steward, dependabot[bot]. +This release was brought to you by 9 contributors, according to `git shortlog -sn --no-merges @ ^v2.12.20`. Thank you Seth Tisue, Lukas Rytz, A. P. Marki, Friendseeker, Matthias Kurz, NthPortal, Philippus Baalman, Scala Steward, dependabot[bot]. Thanks to [Akka](https://akka.io) for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala. From 6ee178a24a934d88201abb22cf43eedd33f182aa Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 26 Nov 2025 11:25:26 +0100 Subject: [PATCH 4/4] review feedback --- 2.12.21.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/2.12.21.md b/2.12.21.md index 3d5b8a094f..972ed85495 100644 --- a/2.12.21.md +++ b/2.12.21.md @@ -18,7 +18,7 @@ The new `@uncheckedOverride` annotation is equivalent to the `override` keyword, ### GPG key change -This release is signed with a different GPG key than previous Scala 2 releases. The new key is the same one used by Scala 3. [#11158](https://github.com/scala/scala-dev/issues/918) +This release is signed with a different GPG key than previous Scala 2.12 releases. The new key is the same one used by Scala 3. [#11158](https://github.com/scala/scala-dev/issues/918) ### More changes @@ -28,8 +28,6 @@ For the complete 2.12.21 change lists, see [all merged PRs](https://github.com/s As usual for our minor releases, Scala 2.12.21 is [binary-compatible](https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html) with the whole Scala 2.12 series. -Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration advice from the compiler. - ## Contributors A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent.