Postmortem of scala/scala3#24994
Briefly

Postmortem of scala/scala3#24994
"Upgrade directly to Scala 3.8.1, or 3.8.2 once it becomes available. Scala 3.8.0 is discouraged from being used because of the issue described in this document. The issue is not flagged by the compiler, it manifests in a NoSuchFieldError thrown at runtime. We believe the exposure is very limited, and it's unlikely for users to be affected. Libraries compiled and published with Scala 3.8.0 are not corrupted and can be used safely."
"On Tuesday, 13th of January 2026 Scala 3.8.0 artifacts were published with a (at the time unknown) contract-breaking bug in its bytecode. The issue only got reported on Thursday, 15th of January, in the scalacenter/sbt-missinglink SBT plugin bug tracker under scalacenter/sbt-missinglink#54. This was re-raised in the Scala 3 compiler bug tracker a day later, on Friday, 16th of January, at scala/scala3#24994."
Scala 3.8.0 artifacts contained invalid references to private fields in the standard library, producing contract-breaking bytecode. The defect can trigger a NoSuchFieldError at runtime and is not diagnosed by the compiler. The bug was reported via scalacenter/sbt-missinglink and scala/scala3 issue trackers shortly after publication. A hotfix was developed and merged and included in Scala 3.8.1. The Scala Core Team released 3.8.0 and 3.8.1 simultaneously and recommended upgrading directly to 3.8.1 or 3.8.2 when available. Libraries compiled and published with 3.8.0 are not corrupted and remain safe to use. The exposure is believed to be very limited.
Read at Scala-lang
Unable to calculate read time
[
|
]