Update scala.version to v2.13.17 #463
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.13.10->2.13.172.13.10->2.13.17Release Notes
scala/scala (org.scala-lang:scala-reflect)
v2.13.17: Scala 2.13.17Compare Source
The Scala team at Akka is pleased to announce Scala 2.13.17.
This release is compatible with the new JDK 25 LTS.
See below for known issues / regressions in this release.
The following are highlights of this release:
Compatibility
Breaking changes
productPrefixhash statically in case classhashCode(#11023)hashCodemethod of a case class no longer callsproductPrefix. This changes the hash code of case classes that overrideproductPrefix.scala.util.Usingsuppression order (NonFatalsuppressesControlThrowable) (#11000 by @NthPortal)Usingin a project that crossbuilds to Scala 3, you may wish to wait for a Scala 3 release that includes the 2.13.17 standard library, or use a dependency override to force the upgrade in your buildFeatures and notable changes
AnnotationInfowhen using named/default arguments, support custom annotation subclasses (#10976)class nodep extends annotation.nowarn("cat=deprecation")and use@nodepto silence deprecationsnowarn/-Wconffilters for a warning with@nowarn("verbose")(#10985)toVectorfor XML literal sequences (#11065)Scala 3 compatibility and migration
-Xsource-featureswithout-Xsource:3(#11123)-Xlint:_,-infer-structuralsummonIgnoringfrom 3.7 asc.inferImplicitValueIgnoring(#11068 by @MateuszKubuszok)Notable bug fixes
LazyList(#10937)Future.firstCompletedOf(prevents memory leaks) (#10927)-Xsource-features:eta-expand-alwaysfor eta-expansion without an expected type (#10907 by @som-snytt)More changes
For the complete 2.13.17 change lists, see all merged PRs and all closed bugs.
Known issues / regressions
False positive lint warning:
a type was inferred to be kind-polymorphic-Xlint:infer-anyflag (which is also enabled with plain-Xlint)-Wconf:cat=lint-infer-any&msg=kind-polymorphic:sScaladoc
@defineno longer works if the doc comment is on anobject-Wunused:privatesnow warns about unusedprivate final valdeclarations. When such avalis only referenced as argument to a Java annotation, it is incorrectly reported as unused@nowarn("cat=unused-privates")to thevaldeclarationCompatibility
As usual for our minor releases, Scala 2.13.17 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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 23 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.16 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Alec Theriault, Jason Zaugg, Sébastien Doeraene, Scala Steward, Bernhard, Tomasz Godzik, Vasil Vasilev, Arthur Soulié, Emil Ejbyfeldt, Hamza Remmal, Jiri Vanek, Kenji Yoshida, Lorenzo Gabriele, Marissa, Mateusz Kubuszok, Matthew Lutze, Philippus Baalman, Stefan Zeiger, philwalk, 虎鸣.Thanks to Akka for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
using scalasetting in your Scala-CLI projectscalaVersionsetting in your sbt or Mill projectv2.13.16: Scala 2.13.16Compare Source
The Scala team at Akka (formerly Lightbend) is pleased to announce Scala 2.13.16.
The following changes are highlights of this release:
Breaking change
.tailand.initnow throw (instead of returning the empty string) (#10851 by @sh0hei)Compatibility
REPL
scala-compiler.jarAlign with Scala 3
-Xsource:3, deprecate infix named args (#10857 by @som-snytt)Errors and warnings
-Wunused:patvars(#10870 by @som-snytt)Collections
rangeHashwhenrangeDiffis 0 (#10912 by @Friendseeker)collection.mutable.AnyRefMap(#10862 by @wangyum)collection.mutable.HashMapMore changes
For the complete 2.13.16 change lists, see all merged PRs and all closed bugs.
Compatibility
As usual for our minor releases, Scala 2.13.16 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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.
We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for many of the improvements in this release.
This release was brought to you by 19 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.15 ^2.12.x. Thank you A. P. Marki, Seth Tisue, Scala Steward, Lukas Rytz, Friendseeker, Ondra Pelech, Philippus Baalman, Benjamin Maurer, Corey O'Connor, Eric Seidel2, Hamza Remmal, Jamie Thompson, João Costa, Kenji Yoshida, Mathias Kools, Rikito Taniguchi, Yuming Wang, rochala, sh0hei.Thanks to Akka for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
using scalasetting in your Scala-CLI projectscalaVersionsetting in your sbt or Mill projectv2.13.15: Scala 2.13.15Compare Source
The Scala team at Lightbend is pleased to announce Scala 2.13.15.
The following changes are highlights of this release:
Breaking changes
-Wconf:x,ynow means-Wconf:x -Wconf:y, with y overruling x, rather than the reverse (to align with Scala 3.4+ and with user intuition) (#10708 by @som-snytt)Compatibility
Features
-system, like javac) (#10801 by @szeiger)-Ycollect-statisticsfor collecting statistics without printing them (#10795 by @szeiger)Align with Scala 3
-Xsource-features:double-definitionsto warn or error for double definitions (#10846 by @som-snytt)-Xsource:3, allow importinggiven, for cross-building (#10786 by @som-snytt)-Xsource:3, remove by-name restriction for case copy (#10770 by @som-snytt)Errors and warnings
-Wconfand-nowarnto be more consistent (#10750 by @som-snytt)-Wtostring-interpolatedto warn if interpolator usestoString(#10776 by @som-snytt)Anylint (fixing false positives and false negatives) (#9452 by @som-snytt)-Wmacros(#10781 by @som-snytt)-Vcyclicto improve reporting of "cyclic reference" errors (#10680 by @som-snytt)More changes
For the complete 2.13.15 change lists, see all merged PRs and all closed bugs.
Compatibility
As usual for our minor releases, Scala 2.13.15 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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.
We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for many of the improvements in this release.
This release was brought to you by 13 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.14 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Scala Steward, Seth Tisue, Jamie Thompson, Stefan Zeiger, Hamza Remmal, EnzeXing, Marissa, Philippus Baalman, Samuel Chassot, luozexuan, nbauma109.Thanks to Lightbend for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
using scalasetting in your Scala-CLI projectscalaVersionsetting in your sbt or Mill projectv2.13.14: Scala 2.13.14Compare Source
The Scala team at Lightbend is pleased to announce Scala 2.13.14.
The following changes are highlights of this release:
Align with Scala 3
-Xsource-features, for customizing the behavior of-Xsource:3and-Xsource:3-cross(#10709)Regression fixes
-Xlint:named-booleansto-Wunnamed-boolean-literal(and no longer include it in-Xlint) (#10704 by @som-snytt)ArrayBuilderregression in Scala 2.13.13 (OutOfMemoryErrorwhen adding empty arrays) (#10722 by @som-snytt)Other improvements
SHELLOPTS=viand-Xjline support; reinstate-Xnojline(#10716 by @hvesalai)More changes
For the complete 2.13.14 change lists, see all merged PRs and all closed bugs.
Compatibility
As usual for our minor releases, Scala 2.13.14 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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.
We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for many of the improvements in this release.
This release was brought to you by 9 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.13 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Scala Steward, Jamie Thompson, Antoine Amiguet, Heikki Vesalainen, Robert Stoll, guqicun.Thanks to Lightbend for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
using scalasetting in your Scala CLI projectscalaVersionsetting in your sbt or Mill projectv2.13.13: Scala 2.13.13Compare Source
The Scala team at Lightbend is pleased to announce Scala 2.13.13.
The following changes are highlights of this release:
Language
0b, as in Java (#10656 by @som-snytt)Compatibility
Align with Scala 3
-Xsource:3(for preparing to switch to 3) or-Xsource:3-cross(for crossbuilding on 2 and 3); some existing users of-Xsource:3should switch to-Xsource:3-crossto avoid unwanted behavior changes (#10573 by @som-snytt)-Xsource:3and-Xsource:3-cross: documentationOther improvements
-Yreleasesupplements-release, allows access to additional JVM packages (#10543 by @som-snytt)-Xlintnow enables-Xlint:named-booleansto lint unnamed boolean literal args (#10612 by @som-snytt)java.lang.Deprecatedannotation even in Scala sources (#10517 by @kapunga)finalkeyword is absent (#10629 by @som-snytt)-Xlint:pattern-shadowto lint pattern varids which are backquotable (#8806 by @som-snytt)MODULE$(#10644 by @som-snytt)-doc-source-urlbehavior with 2.12 (#10581 by @lrytz)Known issues
-Xsource:3should explicitly consider switching to-Xsource:3-cross. Some behaviors of-Xsource:3have changed, e.g. in result type inference for inherited methods; see new doc page for details-Xsource:3are getting MiMa failures when upgrading to 2.13.13 and switching from-Xsource:3to-Xsource:3-cross. If you’re in this situation, you may need to wait for 2.13.14; see scala/bug#12961consoletask to access the 2.13.13 REPL (sbt/sbt#7502); error message isNoSuchMethodError: org.jline.utils.AttributedString.fromAnsi-Xlint:named-booleansin-Xlint(#10612) has already proved at least somewhat controversial, and will likely be adjusted for 2.13.14; you can leave feedback on this at #10704More changes
For the complete 2.13.13 change lists, see all merged PRs and all closed bugs.
Compatibility
As usual for our minor releases, Scala 2.13.13 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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.
We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for many of the improvements in this release.
This release was brought to you by 23 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.12 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Jamie Thompson, Seth Tisue, Scala Steward, friendseeker, Paul J Thordarson, Philippus Baalman, Shardul Chiplunkar, Stefan Zeiger, Dale Wijnand, Dmitry Komanov, Eugene Yokota, Georgi Krastev, GerretS, Jason Zaugg, Martijn, Mohammad Yousuf Minhaj Zia, Roberto Tyley, Ryan Scheidter, Trey Cahill, c, Dependabot.Thanks to Lightbend for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
using scalasetting in your Scala CLI projectscalaVersionsetting in your sbt or Mill projectv2.13.12: Scala 2.13.12Compare Source
The Scala team at Lightbend is pleased to announce Scala 2.13.12.
The following changes are highlights of this release:
Feature: Quickfixes
For some errors and warnings, the compiler now suggests an edit that could fix the issue. Tooling such as IDEs can then offer the edits, or the compiler itself will make the change if run again with
-quickfix.CodeAction) (#10406 by @eed3si9n)-quickfixcompiler option to apply quickfixes to source files (#10482 by @lrytz)Align with Scala 3
-Xsource:3as fatal warnings, not errors (#10439 by @som-snytt, #10511)-Xmigrationwill demote the errors to warnings-Wconf:cat=scala3-migration:swill silence these errors/warnings altogether@elidableunder-Xsource:3(#10377 by @som-snytt)Collections
IndexedSeq#headnow throwsNoSuchElementException(notIndexOutOfBoundsException) (#10392 by @som-snytt)Regression fixes
JavaDeprecatedAttrinClassfileParser(#10422 by @som-snytt)Scaladoc tool changes
Library authors should be aware that the behavior of
-doc-source-urlhas changed, as follows:You may need to adjust your build accordingly, to avoid generating broken source links.
Tooling
The following change is mainly of concern to tooling maintainers.
Other notable changes
For the complete 2.13.12 change lists, see all merged PRs and all closed bugs.
Compatibility
As usual for our minor releases, Scala 2.13.12 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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.
We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for a large share of the improvements in this release.
This release was brought to you by 12 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.11 ^2.12.x ^366ba2f. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Scala Steward, Michel Davit, Nicolas Stucki, Alex Leigh, Eugene Yokota, Georgi Krastev, Jamie Willis, Julien Richard-Foy, NthPortal.Thanks to Lightbend for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
using scalasetting in your Scala CLI projectscalaVersionsetting in your sbt or Mill projectv2.13.11: Scala 2.13.11Compare Source
The Scala team at Lightbend is pleased to announce Scala 2.13.11.
The following changes are highlights of this release:
Collections
Vectorconcatenation (#10159 by @ansvonwa)LinkedHashMap/LinkedHashSetimplementation (#10221 by @liang3zy22)Compatibility
sealedin Java sources and classfiles (#10348, #10105 by @som-snytt)Align with Scala 3
implicit _,implicit (x: Int)in lambdas, like Scala 3 does (#10327 by @som-snytt)copydoes not suspend casecopy(#10085 by @som-snytt)-Xsource:3, warn that inherited members no longer take precedence over outer definitions in Scala 3 (#10220, #10339)-Xsource:3, adjust 2.13.9 change to ignore override type for whitebox macro expansion (#10188 by @som-snytt)-Xsource:3, use narrowest type for pt of override (#10198 by @som-snytt)-Xsource:3, warn about change to parenless lambda parens (#10320 by @som-snytt)Lints and warnings
Unit, orIntthat incurs widening (#10372 by @som-snytt)Unitand discarded (#10150 by @som-snytt)Other notable changes
javabootclasspathsupersedesjrt(#10336 by @som-snytt)equalsandhashCodeonIterableWrapperagain (fixing 2.13.9 regression) (#10205 by @som-snytt)-Vimplicits; errors now show complete implicit search tree (#9944 by @tribbloid)-Vprintdefaults to-Vprint:typer; phases may be prefixed with~to mean "before and after" (#10173 by @som-snytt)2.13.11 also includes the changes from Scala 2.12.18. (A few of the most significant, such as those involving JDK 20 and 21 compatibility, are listed above.)
For the complete 2.13.11 change lists, see all merged PRs and all closed bugs.
Known issues
A few regressions have been discovered:
@Deprecatedannotations when extending Java interface with deprecated default method causejava.lang.annotation.AnnotationFormatErrorwhen accessed via Java reflection (2.13.11 regression) (scala/bug#12799)We'll address these in Scala 2.13.12.
Compatibility
As usual for our minor releases, Scala 2.13.11 is binary-compatible with the whole Scala 2.13 series.
Upgrading from 2.12? Enable
-Xmigrationwhile 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.
We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for a large share of the improvements in this release.
This release was brought to you by 28 contributors, according to
git shortlog -sn --no-merges @​ ^v2.13.10 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Anselm von Wangenheim, Scala Steward, Liang Yan, Jamie Thompson, jxnu-liguobin, AminMal, Jason Zaugg, Kenji Yoshida, Rituraj, ashish, Chris Kipp, Dale Wijnand, Francesco Kriegel, Georgi Chochov, Goooler, João Costa, Kisaragi Marine, Rafał Sumisławski, Ruslans Tarasovs, Simon R, Sébastien Doeraene, Tomasz Godzik, Zhang Zhipeng, danarmak, hepin.p.Thanks to Lightbend for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers commercial support for Scala.
Scala 2.13 notes
The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.
Obtaining Scala
Scala releases are available through a variety of channels, including (but not limited to):
scalaVersionsetting in your sbt projectusing scalasetting in your Scala-CLI projectConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.