Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Scala 2.13.18

Latest

Choose a tag to compare

@lrytzlrytz released this 17 Nov 09:07
· 5 commits to 2.13.x since this release
v2.13.18
This tag was signed with the committer’sverified signature.
lrytz Lukas Rytz
GPG key ID:188F281CF7FF724E
Verified
Learn about vigilant mode.
98f40d0
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

The Scala team at Akka is pleased to announce Scala 2.13.18.

This release fixes several regressions from 2.13.17. It is compatible with JDKs 8 to 26.

The following are highlights of this release:

Restore traditional behavior when passing anull array to a varargs method in Scala 3

When passing an array as "sequence argument" to a varargs method,method(arg: _*), the array is converted to aSeq.

In Scala 3 (the syntax ismethod(arg*)), this conversion is done by theScalaRunTime.wrapXArray methods.
These methods were simplified in 2.13.17, which changed the semantics of amethod((null: Array[T])*) invocation.

#11165 restores the previousnull handling semantics.

Fixes for false positive warnings

  • #11162 reverts-Xlint:infer-any to the behavior of 2.13.16.
    The lint was extended in 2.13.17 to warn wheneverNothing is inferred for a higher-kinded type parameterT[_].
    The new warning showed up in many projects: often as a false positive, but even the "true" positive warning was considered unhelpful / spurious in real-world use cases.
  • Fix false positive unused warning for private val used in annotation#11149
  • Fix false positive-Xlint:universal-methods warning in synthetic code#11159

JDK 26 support

  • Compiling on Java 26 is now supported#11179

New@uncheckedOverride annotation

The new@uncheckedOverride annotation is equivalent to theoverride 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

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

Other notable changes

  • On Java 25+,sbt run now detects main methods that are non-static, non-public or without parameter list#11137
  • Regression fix: 2.13.17 was accidentally dropping certain annotations#11173
  • Deprecate the-Xmain-class compiler flag#11156

More changes

For the complete 2.13.18 change lists, seeall merged PRs andall closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.18 isbinary-compatible with the whole Scala 2.13 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 togit shortlog -sn --no-merges @ ^v2.13.17 ^2.12.x. Thank you Lukas Rytz, A. P. Marki, Scala Steward, Seth Tisue, NthPortal, Evgeny Vereshchagin, Kenji Yoshida, Philippus Baalman.

Thanks toAkka for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala.

Scala 2.13 notes

Therelease 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):

  • Bump theusing scala setting in your Scala-CLI project
  • Bump thescalaVersion setting in your sbt or Mill project
  • Download a distribution fromscala-lang.org
  • Obtain JARs viaMaven Central
Assets10
Loading
gaeljw, lvitaly, and He-Pin reacted with thumbs up emojiHe-Pin reacted with heart emoji
3 people reacted

[8]ページ先頭

©2009-2025 Movatter.jp