Skip to main content

Scala 3.10.1

Release Date: November 11, 2026

Remember when Scala 3 was a compiler you had to build from source overnight, and the pitch was mostly about union types and indentation? Version 3.10.1, published on November 11, 2026, is the fifth patch release in a line that started life as Django-style "boring compiler work" and now quietly underpins JVM services, Scala.js front ends, and Scala Native binaries. This release is not dramatic. It is, however, a decent marker of how far the toolchain has travelled.

Three Headline Items

  • JDK 28 support (PR #27347). The compiler can now read class files produced by JDK 28. Teams tracking early-access JDKs no longer need to downgrade their toolchain to compile against the newest platform libraries.
  • Scala CLI bumped to 1.18.0 (PR #27255), up from 1.17.1. The bundled CLI is what scala run script.scala and the metals build import path rely on, so this moves the out-of-the-box experience forward without an extra install step.
  • SIP-77 lands as experimental: method block end markers (PR #24251). This is the significant one. It gives method bodies an explicit end marker, which is aimed squarely at long indentation-based blocks where the closing brace used to be the only anchor.

What Started in 2021

Scala 3.0 shipped in 2021 with a compiler that had been rewritten from scratch, a new macro system still finding its footing, and a standard library that had to interoperate with everything written for Scala 2.13. The 3.x trajectory since then has been about closing gaps rather than adding syntax: incremental compilation that does not recompute the world, an inline model that survives cross-library boundaries, and a presentation compiler good enough for IDE completion inside macros.

The fix list in 3.10.1 reads like the tail end of exactly that work. Inline handling gets five separate corrections, including preserving skolem types generated from outer inline calls (#26915) and avoiding a "cannot establish a reference" error when inlining singleton arguments with a non-path prefix (#27236). Pattern matching gets a fix for sealed Java classes whose member types are unavailable (#27069) plus a correction that stops the last arm of an exhaustive match from being simplified into a trivially true branch (#27070).

Compiler Internals and Performance

On the backend side, ScalaPrimitives was optimised and simplified (#27142), a Context is no longer captured in PostProcessor (#26328), and ASM utilities moved to 9.11.1 (#27363). There is a general pass of micro-optimisations focused on allocations (#27077) and a set of boxing reductions (#26939).

One change is worth flagging for build engineers: SourceFile now uses String as its content type (#26846). Anything that reflected on that API, or wrote tooling against the compiler as a library, should be checked before upgrading.

Annotations and Exports

  • Inlined Java annotations with default values no longer crash the compiler (#27095).
  • @deprecatedName now accepts a Symbol as well as a string (#27048).
  • @throws on a non-method or constructor is rejected at definition site (#27064), and deprecated annotation constructors are reported (#27049).
  • Error messages for invalid export statements were rewritten (#27186), and the generic signature of exported module accessors is fixed (#27046).

Where This Sits

Ten minor lines in five years is a slower cadence than the 2.x era, and that is the point. The 3.10 series is mature enough that a patch release can be summarised as "JDK 28 reads, CLI bumps, one experimental SIP, five inline fixes". Projects on 3.10.0 should upgrade: incremental compilation correctness fixes alone justify it. Projects on 3.3 LTS have no urgent reason to move, though the growing distance between the LTS and current lines means the eventual jump gets larger each release.

Install with scala-cli by setting the version, or change scalaVersion in your build to 3.10.1. Treat SIP-77 as experimental: do not adopt the end markers in shared code before the syntax is stabilised.

Other Versions

We use cookies for ads and analytics.