Highlights of the release
- For transparent inline methods, make their inline default value getters also transparent #27516
- Scaladoc: interactive toggle for capture checking content #26877
New experimental features
- SIP-79 - Implement relaxed null checks under strictEquality #26420
- Specialized Traits - Permit variance in specialized traits #27581
- Standard Library - Add
applyUsingextension methods on function types to theFunctionNcompanion objects #27295
Other changes and fixes
Transform
- Clearer error message when SAM conversion is rejected for a sealed or final type #26639
- Fix: use isGenericArrayArg to guard the ofDim intrinsification #27216
- Don't let a trait setter write the overriding val's field #27378
Post Typer
Syntax
- Check for conflicting setter in getters #25184
Annotations
- I26534: warn unused annotation on used params #27109
Backend
- Lift ASM-imposed compute limits in the backend #27466
- I24774: optimize union type case in catch clause to emit multi-catch byte code #27294
- Revert to the Scala 2 encoding for trait initialization and super calls #8652
- Lazy-load
KnownBTypes#27143
Scaladoc
- Scaladoc: eliminate dead links of many kinds #27407
- Scaladoc: order inherited members same as declared ones #27419
- Scaladoc: fix and adopt the dynamic side menu (124→24 MB compiler javadoc) #27403
- Scaladoc: link the header logo to index.html; drop dead CSS #27405
- Scaladoc: Deduplicate Capture-Checking Definitions #27233
- Several Scaladoc with CC Fixes #27232
Documentation
- Fix doc comments that render as broken or dead links #27406
Extension Methods
- Add note to missing implicit arg of extension #26150
Inference
- When checking AndType subtyping prioritise checkBase, not fourthTry #27308
- Fix infinite recursion in avoidance on cyclic type variable instances #27470
- Fix: Regression in higher-kinded type inference through a match type with Nothing #27239
Inline
- Also retain runtime-invokable inline methods when they are indirectly overriden #26644
- Omit pkg receiver of inline accessor #25356
- Fix #27355: Keep the path-dependent type of members rewired to inline accessors #27356
- One more fuel fix, for 26887 #27350
- Fix 26887.scala, again #27379
- Yet another fuel fix #27415
Quotes
- Improve the error message for certain macro cyclic dependency errors #27488
- Fix #12543: Give each staging run a new run id #27335
- QuotesImpl: order methodMembers, fieldMembers #27372
Named Tuples
- Fix crash in PatternMatcher for dependent type NamedTuple.From #24515
JVM Backend Optimizer
- Optimizer: bound producer/consumer analysis cost in local optimizations #27290
- Optimizer: Unify inlining access checks, including for handles and constants #27472
- Remove
ct.symtojrtreplacement in optimizer classpath #27442 - Skip phantom members when building inline info from class symbols #27422
- Optimizer: make analyzers intrinsically lazy #27214
Parser
- Reject wildcard type in ascription #27361
Pattern Matching
- Don't leak
unapplytype variables from space engine #27412 - Don't decompose
*:into its children in the exhaustivity check #27425 - Tolerate inheritance from raw types in the space engine #27365
Pickling
- Fix: byte collision when reading tasty #27257
- Fix ClassCastException when unpickling Scala 2 constant annotation args #27300
- Stop checking tasty UUIDs in class files #27205
Presentation Compiler
- Bugfix: Fix sourcepath mode if package object only contains exports #27594
- Fix match-case completion labels for non-enum Java classes #27274
- Bugfix: Don't throw if content is empty #27375
REPL
- CC: Freeze the capture sets of checked definitions #27438
- Repl: Build
:completionsuniversal-member filter once per query + misc improvements #27542 - Add
:completions <input>REPL command, ported from Scala 2 #27489 - Fix(repl): resolve StopRepl in -Xrepl-interrupt-instrumentation:local #27201
SemanticDB
- Do not follow symlinks when writing files #27311
- Number SemanticDB's fake symbols in insertion order #27358
Typeclass Derivation
Typer
- Unbox value classes in arguments on dynamic function call #17564
- Differentiate between Term and Type NamedTypes in equals #27457
Polyfunctions
- Change representation of polymorphic function types #27202
Enums
- The compiler generated fromOrdinal catches IndexOutOfBoundsException #27552
JDK
- Make the synthetic jdk.internal.ValueBased symbol Permanent, so that subsequent runs don't try to reresolve it #27461
- Fix #27273: Mark Java enum constants from classfiles StableRealizable #27275
- Name the parameter of a Java enum's synthetic valueOf
name, as javac does #27277 - Fix #27242 Allow protected access from Java static nested classes of subclasses #27259
- Fix #25271: Java sealed hierarchies read from classfiles #27226
- Deprecate casts determining the signature of signature polymorphic calls #27413
Nullability
- Support Jspecify Annotations #27217
Linting
- Treat untupled params #27248
- Exempt extension methods returning their receiver from discard warnings #27235
- Warn on synchronized for value-based classes under
-release#27318
Reporting
- Position the error tree for macros blocked by -Yno-suspended-units #27344
Positions
- Improve the position of default constructor arguments #27199
Rewrites
- Don't truncate the source when -rewrite fails; fix do/while + -indent overlap #27342
Coverage
- Fix coverage nightly breakage #27411
Settings
- Allow lazy resolution of setting values #27485
- Clean up Settings, fix Scaladoc issues this unearths #27005
- Remove
-Ycompile-scala2-library#27431
Classpath
- Encapsulate the
classpathmodule #27416 - Remove
.jimagesupport #27444 - Remove unneeded absolute URL support in Class-Path manifest attribute #27370
- Remove
ClassPath.asURLs#27193 - Add a fast path for classpath classes and sources merging #27251
Incremental Compilation
- Mark deferred terms abstract in the API sent to Zinc #27271
- Exclude inline parameters again when hashing inline bodies in ExtractAPI #27272
SBT Bridge
- Implement HashedVirtualFileRef methods in the sbt bridge fallback file #27445
Tooling
- Fix crashes in TastyPrinter, -from-tasty and the decompiler #27341
- Fix TastyPrinter reading signed constant payloads as Nat #27269
Standard Library
- Avoid unneeded
@specializeduses in the stdlib #27505 - Build Duration's unit tables without a regex #27501
- Remove unnecessary conversion to ArraySeq when concatenating two IArray #27498
- Revert NonFatal narrowing in concurrent and LazyList defended by new tests #27414
Scala-JS
- Bring the Scala.js version of Range on par with the JVM one. #27310
Performance
- Bring denotations forward in one loop, skipping identity transformers #27357
- Minor collection-related optimizations #27353
- Avoid memory leaks in when compilation reuses ContextBase #27297
- Avoid spinning in SingleDenotation.goBack for late-created symbols #27296
- Avoid boxing when computing SourceFile line indices #27292
- Cache SourceFile.ext #27291
Infrastructure
- Bump
coursierto 2.1.26 (was 2.1.25-M26) andio.get-coursier:interfaceto 1.0.30 (was 1.0.20-M4) #27241 - Generate release SBOM #27204
Experimental: Capture Checking
- CC: Keep references to capture set parameters in inferred types (v3) #27443
- CC: Compare bounds of polymorphic function types #27549
- Avoid widening to info of capabilities in Setup phase #27539
- Properly implement update classes #27543
- Freeze classifier on impliedCaptures and creationCapset #27531
- Two fixes for intersections of capturing types #27532
- Fix subsumes test for GlobalCap subsumes derived capability #27535
- Fix under-approximation of capture sets of intersections #27541
- Make selection narrowing depend on read-only context #27527
- Skip anonymous functions in consume check #27526
- Tweak associateWithStateful #27528
- Fix #27521: Detect overlap of exclusive root with read-only path in separation checking #27524
- Fix #27518: Drop private flags for retainsByName parameters too #27523
- CC: Move
@consumeof a by-name parameter to its function type #27400 - CC: Do not summarize variables inside a summary #27401
- Ignore capture sets of match type scrutinees under capture checking #27180
- Drop skolem prefixes from capture refinements #27230
- CC: Omit empty capture sets of pure classes when printing types #27484
- CC: Compare inferred types with externally visible types in both directions #27550
- CC: Keep capture sets in parts of type arguments for pure bounds #27551
- CC: Implement Classifier Exclusion Pt. 3 #26409
- CC: Implement Classifier Exclusion Pt. 4 #27399
- CC: fix incorrect
greatestClassifier#27478 - CC: Unbox the reducts of match types at use sites #27371
- Two fixes to capture inference #27364
- Shrink overhead of compiler representation of capability sets via a holder class #27315
- More progress on capture-checking stdlib #26727
Experimental: Erased definitions
- Use placeholder mechanism to check for illegal erased bindings #27428
Experimental: Inline Traits
- Fix transformSym in PruneInlineTraits #27302
- Add PostSpecializedInlineTraits to adapt inlined member refs #27497
- Update return trees when inlining trait members #27210
- Copy annotations when inlining trait members #27491
- Read the body of an inline trait from TASTy with positions #27345
- Cleanups for inline/specialized traits #27247
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.10.1..3.10.2-RC1 these are:
40 Solal Pirelli
34 Oliver Bračevac
31 Jason Zaugg
25 dependabot[bot]
20 Martin Odersky
15 Piotr Chabelski
9 Jan Chyb
7 Som Snytt
7 Wojciech Mazur
6 Lukas Rytz
6 Yichen Xu
5 HarrisL2
5 James You
4 Zieliński Patryk
3 Bartłomiej Kozak
3 Jakub Warchoł
3 Natsu Kagami
3 Tomasz Godzik
3 noti0na1
2 110416
2 Juan Manuel Méndez Rey
2 Matthias Berndt
2 Ondra Pelech
2 Oron Port
2 timothy
1 Alexander Nemish
1 Anatolii Kmetiuk
1 Emil Ejbyfeldt
1 G1ng3r
1 Heikki Vesalainen
1 Martijn Hoekstra
1 Mikołaj Fornal
1 Ondřej Španěl
1 PhoenixmitX
1 Puerco
1 Rok Kralj
1 Sergiy Shcherbyna
1 Sébastien Doeraene
1 Vasil Markoukin
1 eugene yokota
1 utgheith