From 1f59fc585dcc228e35a1c8862bb3ce2afd992c7f Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 2 May 2023 19:56:15 -0700 Subject: [PATCH 1/4] Scala 2.12.18 release notes --- releases/2.12.18.md | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 releases/2.12.18.md diff --git a/releases/2.12.18.md b/releases/2.12.18.md new file mode 100644 index 0000000000..8d98f9a81d --- /dev/null +++ b/releases/2.12.18.md @@ -0,0 +1,46 @@ +# Scala 2.12.18 + +This release improves **compatibility**: + +* Support JDK 20 with ASM 9.5 upgrade, by @Philippus ([#10185](https://github.com/scala/scala/pull/10185), [#10362](https://github.com/scala/scala/pull/10362)) + +It also aids **migration** to Scala 2.13 and Scala 3: + +* Under `-Xsource:2.13`, warn when inherited takes precedence over outer definitions ([#10297](https://github.com/scala/scala/pull/10297), [#10321](https://github.com/scala/scala/pull/10321)) +* Under `-Xsource:2.13`, flag eta-expanding methods without parameter lists ([#10283](https://github.com/scala/scala/pull/10283)) +* Under `-Xsource:2.13`, don't GLB binders of type patterns, use the type directly ([#10298](https://github.com/scala/scala/pull/10298)) + +and improves **linting**: + +* Lint for integral divisions that are widened to a float ([#10313](https://github.com/scala/scala/pull/10313)) + +and enables improved **tooling**: + +* Preserve tree attachment in the typer's `Block`/`Apply` inversion transform ([#10176](https://github.com/scala/scala/pull/10176)) + +For complete 2.12.18 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.12.18) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.12.18). + +## Compatibility + +As usual for our minor releases, Scala 2.12.18 is [binary-compatible](https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html) with the whole Scala 2.12 series. + +## 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 6 contributors, according to `git shortlog -sn --no-merges @ ^v2.12.17 ^2.11.x`. Thank you Seth Tisue, Lukas Rytz, Scala Steward, A. P. Marki, Jason Zaugg, Philippus Baalman. + +Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) 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 `scalaVersion` setting in your sbt project +* Bump the `using scala` setting in your Scala-CLI project +* Download a distribution from [scala-lang.org](http://scala-lang.org/download/2.12.18.html) +* Obtain JARs via [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.12.18%22) From aeb44b10931986195295eac35ad14d9791bf9e75 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 2 May 2023 20:33:35 -0700 Subject: [PATCH 2/4] Update releases/2.12.18.md Co-authored-by: kenji yoshida <6b656e6a69@gmail.com> --- releases/2.12.18.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/2.12.18.md b/releases/2.12.18.md index 8d98f9a81d..dc2207d6f1 100644 --- a/releases/2.12.18.md +++ b/releases/2.12.18.md @@ -42,5 +42,5 @@ Scala releases are available through a variety of channels, including (but not l * Bump the `scalaVersion` setting in your sbt project * Bump the `using scala` setting in your Scala-CLI project -* Download a distribution from [scala-lang.org](http://scala-lang.org/download/2.12.18.html) -* Obtain JARs via [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.12.18%22) +* Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.12.18.html) +* Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.12.18) From 6abae5162757aaa39f6036d55c7742df2c62afdd Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 2 May 2023 20:45:24 -0700 Subject: [PATCH 3/4] JDK 21 too! --- releases/2.12.18.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/2.12.18.md b/releases/2.12.18.md index dc2207d6f1..b96949b293 100644 --- a/releases/2.12.18.md +++ b/releases/2.12.18.md @@ -2,7 +2,7 @@ This release improves **compatibility**: -* Support JDK 20 with ASM 9.5 upgrade, by @Philippus ([#10185](https://github.com/scala/scala/pull/10185), [#10362](https://github.com/scala/scala/pull/10362)) +* Support JDK 20 and 21 with ASM 9.5 upgrade, by @Philippus ([#10185](https://github.com/scala/scala/pull/10185), [#10362](https://github.com/scala/scala/pull/10362)) It also aids **migration** to Scala 2.13 and Scala 3: From 5e2fd9d25eb8a13e27fd604c27ff77487cc12680 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 16 May 2023 08:46:54 -0700 Subject: [PATCH 4/4] Update 2.12.18.md --- releases/2.12.18.md | 1 + 1 file changed, 1 insertion(+) diff --git a/releases/2.12.18.md b/releases/2.12.18.md index b96949b293..06c5f95d2f 100644 --- a/releases/2.12.18.md +++ b/releases/2.12.18.md @@ -3,6 +3,7 @@ This release improves **compatibility**: * Support JDK 20 and 21 with ASM 9.5 upgrade, by @Philippus ([#10185](https://github.com/scala/scala/pull/10185), [#10362](https://github.com/scala/scala/pull/10362)) +* Fix crash reading JDK 21 classfiles ([#10397](https://github.com/scala/scala/pull/10397)) It also aids **migration** to Scala 2.13 and Scala 3: