Repository navigation
Releases
3.10.1
Highlights of the release
- Add JDK 28 #27347
- Bump Scala CLI to 1.18.0 (was 1.17.1) #27255
- Implement SIP-77 (as experimental): Method Block End Markers #24251
Other changes and fixes
Annotations
- Avoid crashing for an inlined Java annot with a default value #27095
- Support
Symbolname in@deprecatedName#27048 - Reject
@throwson non-methods and constructors #27064 - Check whether annotation constructors are deprecated #27049
JVM Backend
- Optimize and simplify
ScalaPrimitives#27142 - Stop capturing a
ContextinPostProcessor#26328 - Use the right context when loading symbols during gensig #27031
- Encapsulate CallGraph and Inliner #26320
- Update dependencies #27320
- Upgrade asm-util and asm-commons to 9.11.1 #27363
- Treat IINC to parameter locals as a write #27544
Coverage
- Coverage: unescape when deserializing #27127
Documentation
- Tweak doc warnings #26855
- Fix typo in
->ScalaDoc #26979 - Doc: clarify behavior of line-related functions #27047
Exports
- Fix generic signature of exported module accessors #27046
- Improve error messages for export statements #27186
Implicits
- Reset typer state on issueErrors #23556
Incremental Compilation
Inline
- Error out when primaryConstructor params are used out of scope in macros #27100
- Fix #26958 recover call skolem nested in a sibling inline proxy's type #26966
- In inlined code, try to preserve SkolemTypes generated from outer inline calls #26915
- Also call avoidingType when using the custom unpackProxiesFromResultType during inlining #26893
- Fix "cannot establish a reference" when inlining singleton args with non-path prefix #27236
JDK
- ClassfileParser: Compute permitted symbols lazily to avoid cyclic refs #27129
Parser
- Parser: do not create empty integer literals #27126
Pattern Matching
- Fix pattern matching on sealed Java classes with unavailable member types #27069
- Avoid trivially true branch for the last arm of an exhaustive match #27070
Performance
- Use String as the SourceFile content type #26846
- Micro-optimizations, mostly focused on allocations #27077
- Avoid some instances of boxing #26939
Presentation Compiler
- Add small performance improvements to the presentation compiler #27083
- Fix version completion detection after a trailing colon #27035
Quotes
- Fix macro typecheck when source content is not available #27195
- Fix crash pickling a quote as an inline argument (in different source) #27039
- Also dealias transparent types when dealiasing opaques in typedSplice #26984
- Fix stale symbol error caused by currentSymbol.isStaticOwner call #26962
- Fix how DefDef references are recorded when checking macros #27263
REPL
- Parser: allow incomplete files when return type is missing #27175
- Feat(repl): add resource directives and a :resource command #27073
- Fix(repl): keep session state when using :jar and :dep #27072
- Don't try to flexify type lambdas in
FlexibleType.make#27057 - Don't warn about flexible types in REPL wrapper objects #27058
- Fix(repl): do not reuse a resN name that is still in use #26974
- Fix(repl): -Xrepl-interrupt-instrumentation:local instrumenting nothing #26960
- Remove uses of unsafeNulls from the REPL #26954
- Update JLine patch version #27059
Reporting
- Warn when catching
Errors #26794 - Make coverage skip message an info #27028
- Improve message for ambiguous negative literal #27037
- Warn on
synchronizedfor Java value classes #27128 - Add forgotten stripNull to #27128 #27147
SBT Bridge
- Signal dependencyPhaseCompleted after dependencies are sent #27135
- Send dependencies of Java sources to zinc under
-Xjava-tasty#27137 - Pipelining: wait for queued early TASTy before ending a run #27141
- Report JDK classes under -release as binary dependencies #27132
- Omit the empty package from names of Java classes reported to zinc #27136
- Fix unstable API markers for secondary type parameters #27366
Scala JS
- Fix crash boxing Scala.js (+ Scala2) value class to Object #27082
- Scala.js: Prepare for minimal Wasm modules. #26990
Scaladoc
- Scaladoc: pass classpath to tasty inspector via ctx #27167
- Fix Javadoc anchors built from flexible types #27060
Scripting
- Close the Source used to validate target scripts #27188
Settings
- Fix MainGenericCompiler -D property parsing #27025
Standard Library
Transform
- LambdaLift: look for outer params in all owners #27029
Tuples
- Restore TupleXXL generic signatures for tuples longer than 22 #27120
Typeclass Derivation
- Support derivation for self-based type classes #26719
Typer
- Fixes for Java inherited statics #27178
- Don't lose type aliases under annotations in
suppressInto#27085 - Try to fix flaky i21015 pos-deep-subtype #27441
- Another attempt at fixing i21015 #27448
Experimental: Capture Checking
- Make levelOK look at core capabilities #27170
Experimental: Explicit Nulls
- Drop null pattern warning #26967
- Fix isNullableClassAfterErasure for Null under AnyVal #26971
- Fix Java record unapply crash under explicit nulls #26975
- Fix #26994 : make isNotNull true for this and super #26996
- Represent FlexibleType using AppliedType #27004
- Cast pattern matcher throwaway plan to type check under explicit nulls #27052
- Add missing stripNulls to overload resolution of wildcard arguments #27053
Experimentals
- Expected type of literal is behind feature flag #27124
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.10.0..3.10.1 these are:
...
3.10.1-RC2
Backported changes
- Add JDK 28 #27347
- Upgrade asm-util and asm-commons to 9.11.1 #27363
- Update dependencies #27320
- Fix PlainFile equality #27337
- Fix "cannot establish a reference" when inlining singleton args with non-path prefix #27236
- Fix unstable API markers for secondary type parameters #27366
- Try to fix flaky i21015 pos-deep-subtype #27441
- Another attempt at fixing i21015 #27448
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.10.1-RC1..3.10.1-RC2 these are:
3 Solal Pirelli
3 Wojciech Mazur
2 timothy
1 Ondřej Španěl
1 Zieliński Patryk
3.3.9 LTS
Highlights of the release
- Stop using custom fonts for Scaladoc to reduce javadoc jar size
#26393 - Improve Java generic signatures for higher-kinded types, value classes
#25540
#25744
#25631 - Exhaustiveness checking for sealed abstract Java classes
#25788 - Actionable diagnostic for missing members
#23572 - Warn on dubious negative literal syntax (
- 42,-42.abs)
#24163 - Scaladoc no longer crashes with an NPE on JDK 25
#25779
Other changes and fixes
Backend
- Box bounded arguments of HKT result types in Java generic signatures
#26787 - Handle HKT bounds in Java generic signatures
#25744 - Emit acceptable Java generic signatures for HKTs
#25540 - Unwrap refined types for Java generic signatures
#25626 - Fix Java signatures for arrays of value classes
#25631 - Fix generic signature of trait val setter
#26374 - Fix: reliably decide whether to generate static forwarders
#26510 - Fix issue with reading legal java cyclic signatures
#26775 - Do not emit Java generic signatures for trait private val setters
#26633 - Fix crash during generic signature emission for inner classes of type aliases
#26202 - Parse Java annotations on wildcard type arguments
#26187 - Test Java annotations on varargs element types
#26188 - Fix generic signatures of forwarders containing value classes
#25879 - Ignore @throws annotation on non-methods
#26802
CI
- Use
\nfor missing methods patch
#26133 - Fix #25712: Reset frozenConstraint in
TypeComparer.init()
#25766 - Enable assertions for tests and fix other issues
#26168 - Skip mixed Scala-Java tests automatically on Scala.js
#26139 - Fixes for the bisect script
#26116 - Fix broken
//> using jvmdirective in the bisect script
#26115 - Improvement: Add -Wunused:all to presentation-compiler
#26113 - Restore cmdTests and bootstrappedOnlyCmdTests execution in CI
#26082 - Deduplicate community build projects list
#26054 - Promote t750 #25961
- Resurrect some Scala 2 tests for generic signatures
#25736 - Fix main build: use vcBoxing instead of unboxedVCs
#25710 - [tools] Improvements and cleanups to bisect script
#25698 - Restore test #25671
- Add tests from #25703
- Add tests from #26813
Coverage
- Scoverage: Fix coverage parameterless select qualifier casts
#26087 - Scoverage: Enable passing coverage tests
#26090 - Scoverage: correctly detect curried constructor applications
#26048 - Scoverage: fix broken warnings related to tail recursion and infinite loop
detection #25941 - Scoverage: do not instrument methods that have too large bodies
#25629 - Fix separate compilation tests failing under coverage
#25604 - Ignore coverage probes in unused update analysis
#26711
Dependency Upgrades
- Bump coursier to 2.1.25-M25 (was 2.1.25-M24)
#26057 - Update
scalajs-env-nodejsto 1.6.0
#26095 Bump
jekyll-sass-converter from 2.2.0 to 3.0.0 in /docs/_spec
#25963 - Bump rouge from 3.30.0 to 4.7.0 in /docs/_spec
#25964 - Update all dependencies #25959
- Update a few dependencies #25952
- Bump VirtusLab/scala-cli-setup from 1.11 to 1.13
#25846
Desugaring
- Use updated params when desugaring macro context bounds
#26206 - Desugaring: avoid patdef optimization for lazy vals
#26770
Enums
- Regression test for #25723
#26205 - Adjust error on bad enum #23080
- Fix memberType for constructor params
#25669
Erasure
Experimental: Capture Checking
- Make type arguments to default methods InferredTypeTrees
#25852
Implicits
- Also map types in Implicits.emitDictionary
#26143 - Remove questionable transform of Select from
SelectStatic
#25620 - Fixes #24914 Treat equivalent candidates as divergent in implicit search
#25910
Incremental Compilation
- Fix #25894: break cross-unit cyclic export on partial recompile
#25900 - Ignore annotations no longer on the classpath in ExtractAPI
#25889
Inline
- Add regression test for 12577.scala
#26256 - [OpenCB Project Fix] Fixes #26015: Start of NoSpan in adaptToArgs fallBack
#26017 - Fix regression: special case Symbol-less overloaded TermRefs in Inliner
#26853 - Fix (#26178) private inline subclass access proxy bug
#26176
Lambda Lift
Linting
- Improve unused check of variable in assignment body
#24685 - Tweak -Wconf:help for correctness
#25615 - Fix false unused-var warning on self-assignment reads (#26620)
#26635
Opaque Types
- Fixes #25754: Preserve apply result type after beta reducing through opaque
proxies #25988 - Fix crash on invalid opaque type in package
#26118 - Add regression test for i15050
#26110
Match Types
Parser
- Warn dubious negative literal syntax
#24163 - Check ascription in valdef pattern
#25597 - Parser: Recover from unclosed string literal errors
#26763 - Warn if name of empty template has trailing colon
#23907
Pattern Matching
- Fix crash when
unapplyreturns a Boolean-deriving opaque type
#26658 - Preserve GADT constraints until PatternMatcher
#26805 - Make sealed abstract java classes exhaustive checkable
#25788
Pickling
- Fixes #25947, #11043: Avoid JavaArrayType in synthesized classOf for
structural calls #26028 - Fixes #25801: Handle
TypeDefsinensureHasSym
#26011
Presentation Compiler
3.10.1-RC1
Highlights of the release
Other changes and fixes
Annotations
- Avoid crashing for an inlined Java annot with a default value #27095
- Support
Symbolname in@deprecatedName#27048 - Reject
@throwson non-methods and constructors #27064 - Check whether annotation constructors are deprecated #27049
JVM Backend
- Optimize and simplify
ScalaPrimitives#27142 - Stop capturing a
ContextinPostProcessor#26328 - Use the right context when loading symbols during gensig #27031
- Encapsulate CallGraph and Inliner #26320
Coverage
- Coverage: unescape when deserializing #27127
Documentation
- Tweak doc warnings #26855
- Fix typo in
->ScalaDoc #26979 - Doc: clarify behavior of line-related functions #27047
Exports
- Fix generic signature of exported module accessors #27046
- Improve error messages for export statements #27186
Implicits
- Reset typer state on issueErrors #23556
Incremental Compilation
- Fix
Symbol.copyignoring its compilation unit argument #27162
Inline
- Error out when primaryConstructor params are used out of scope in macros #27100
- Fix #26958 recover call skolem nested in a sibling inline proxy's type #26966
- In inlined code, try to preserve SkolemTypes generated from outer inline calls #26915
- Also call avoidingType when using the custom unpackProxiesFromResultType during inlining #26893
JDK
- ClassfileParser: Compute permitted symbols lazily to avoid cyclic refs #27129
Parser
- Parser: do not create empty integer literals #27126
Pattern Matching
- Fix pattern matching on sealed Java classes with unavailable member types #27069
- Avoid trivially true branch for the last arm of an exhaustive match #27070
Performance
- Use String as the SourceFile content type #26846
- Micro-optimizations, mostly focused on allocations #27077
- Avoid some instances of boxing #26939
Presentation Compiler
- Add small performance improvements to the presentation compiler #27083
- Fix version completion detection after a trailing colon #27035
Quotes
- Fix macro typecheck when source content is not available #27195
- Fix crash pickling a quote as an inline argument (in different source) #27039
- Also dealias transparent types when dealiasing opaques in typedSplice #26984
- Fix stale symbol error caused by currentSymbol.isStaticOwner call #26962
- Fix how DefDef references are recorded when checking macros #27263
REPL
- Parser: allow incomplete files when return type is missing #27175
- Feat(repl): add resource directives and a :resource command #27073
- Fix(repl): keep session state when using :jar and :dep #27072
- Don't try to flexify type lambdas in
FlexibleType.make#27057 - Don't warn about flexible types in REPL wrapper objects #27058
- Fix(repl): do not reuse a resN name that is still in use #26974
- Fix(repl): -Xrepl-interrupt-instrumentation:local instrumenting nothing #26960
- Remove uses of unsafeNulls from the REPL #26954
- Update JLine patch version #27059
Reporting
- Warn when catching
Errors #26794 - Make coverage skip message an info #27028
- Improve message for ambiguous negative literal #27037
- Warn on
synchronizedfor Java value classes #27128 - Add forgotten stripNull to #27128 #27147
SBT Bridge
- Signal dependencyPhaseCompleted after dependencies are sent #27135
- Send dependencies of Java sources to zinc under
-Xjava-tasty#27137 - Pipelining: wait for queued early TASTy before ending a run #27141
- Report JDK classes under -release as binary dependencies #27132
- Omit the empty package from names of Java classes reported to zinc #27136
Scala JS
- Fix crash boxing Scala.js (+ Scala2) value class to Object #27082
- Scala.js: Prepare for minimal Wasm modules. #26990
Scaladoc
- Scaladoc: pass classpath to tasty inspector via ctx #27167
- Fix Javadoc anchors built from flexible types #27060
Scripting
- Close the Source used to validate target scripts #27188
Settings
- Fix MainGenericCompiler -D property parsing #27025
Standard Library
Transform
- LambdaLift: look for outer params in all owners #27029
Tuples
- Restore TupleXXL generic signatures for tuples longer than 22 #27120
Typeclass Derivation
- Support derivation for self-based type classes #26719
Typer
- Fixes for Java inherited statics #27178
- Don't lose type aliases under annotations in
suppressInto#27085
Experimental: Capture Checking
- Make levelOK look at core capabilities #27170
Experimental: Explicit Nulls
- Drop null pattern warning #26967
- Fix isNullableClassAfterErasure for Null under AnyVal #26971
- Fix Java record unapply crash under explicit nulls #26975
- Fix #26994 : make isNotNull true for this and super #26996
- Represent FlexibleType using AppliedType #27004
- Cast pattern matcher throwaway plan to type check under explicit nulls #27052
- Add missing stripNulls to overload resolution of wildcard arguments #27053
Experimentals
- Expected type of literal is behind feature flag #27124
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.10.0..3.10.1-RC1 these are:
63 Solal Pirelli
16 Wojciech Mazur
12 Ondřej Lhoták
11 dependabot[bot]
9 Jan Chyb
8 Jakub Warchoł
8 Rikito Taniguchi
6 Lukas Rytz
6 Matt Bovel
6 Piotr Chabelski
5 Bartłomiej Kozak
5 Martin Odersky
5 Som Snytt
4 Jamie Thompson
4 Kenji Yoshida
4 Mikołaj Fornal
4 Sébastien Doeraene
3 TATSUNO “Taz” Yasuhiro
3 Tomasz Godzik
3 Yao Xu
2 Chua Chee Seng
2 David Barri
2 Guillaume Martres
2 James You
2 Oron Port
2 cui fliter
1 Anatolii Kmetiuk
1 Jędrzej Rochala
1 Natsu Kagami
1 Oliver Bračevac
1 Ondrej Lhotak
1 Piotr Paradziński
1 Puerco
1 Zieliński Patryk
1 myetcd
1 noti0na1
3.3.9-RC2
Additional fixes
- bugfix: Fix issues with NoLoader assertion error
#1149
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.3.9-RC1..3.3.9-RC2 these are:
2 Tomasz Godzik3.10.0
Breaking changes
- Don't infer implicits from non-accessible companion #25367
- Enhance constant-folding during inlining #25731
- Replace catching StackOverflowError with fuel #25937
- Forbid
thisin top-level definitions #26448 - Replace runtime.Rich* implicits on primitives by direct extension methods. #23872
- Make
->sugar an inline method #24728 - Make
withtype operator an error #26545 - For bytecode generation, use stock ASM (not our old scala-asm fork) #26772
Highlights of the release
-
Add support for
\sspace escape #26515 -
Add support for
//> using depdirectives in the REPL (along with trailing code) #26507 -
Add support for java records in pattern matching #26497
-
Add .deb and .rpm packaging #26858
-
Bump Scala CLI to v1.17.1 (was v1.16.0) #27055 #27107:
- JEP 512 flexible main methods on JDK 25+ (JDK 21+ with
--enable-preview) - Individual files as resources via
--resourceand//> using resource //> using excludeis accepted in.scscripts-dpaths ending in.jarproduce a library JAR, matchingscalacltsversion tags now resolve to the Scala 3.9 LTS series; use3.3.ltsto pin the 3.3 series- Refer to Scala CLI v1.17.0 and v1.17.1 for details
- JEP 512 flexible main methods on JDK 25+ (JDK 21+ with
-
New stablized features:
- SIP 71: strictEqualityPatternMatching is now enabled by default default & add deprecation mechanics for
-languagefeature flags #26424
- SIP 71: strictEqualityPatternMatching is now enabled by default default & add deprecation mechanics for
-
New preview features:
-
New experimental features:
Other changes and fixes
Annotations
- Add regression test for Java annotation '@retention' visibility (#389) #26339
- Synthetic cast must not break tailrec #26343
- Deprecate
scala.annotation.strictfp#24839
Backend
- More accurate generic signatures for boxed primitives #25944
- Do not emit unnecessary fields for nested objects #25538
- Various performance optimizations #3214
- For bytecode generation, use stock ASM (not our old scala-asm fork) #25989
- Layer JVM backend without cycles #26237
- Fix backend crash for
null.hashCode, clean up #27094
Desugaring
- Use updated params when desugaring macro context bounds #26206
Scaladoc
- Scaladoc: find members ending in
!or$#26739 - Scaladoc: Do not crash on class+module in API package #26766
- Scaladoc: Do not allow resolving warnings to hide each other #26742
- Scaladoc: Recursively unwrap exported trees #26737
- Scaladoc: Stop hijacking link clicks #26664
- Scaladoc: stay on the same page when switching versions #26762
- Disable bogus Scaladoc warnings #26663
Documentation
- Drop: remove access to
Predef.any2stringadd#24656 - Fixes to
intodoc #26203 - Fix markdown code fences in PartialFunction.scala #26397
- Util, io, ref (8): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26127
- Jdk (7): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26126
- Root files (9): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26125
- Collection immutable (3): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26121
- Collection mutable (2): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26120
- Quoted, compiletime (6): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26124
- Annotation, reflect, misc (11): fill in missing '@PARAM', '@tparam', and '@return' tags in Scaladoc comments #25381
- Sys, concurrent, runtime (1): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26119
- Collection core (4): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26122
- Math (5): filled in '@PARAM', '@tparam', and '@return' tags that were missed last time #26123
- Fix scaladoc link check for into #26207
Extension Methods
- Fix: prevent infinite recursion in compareAppliedTypeParamRef #26608
- Fix regression: more frequently cast the result of transparent inline #26684
Implicits
- Also map types in Implicits.emitDictionary #26143
Incremental Compilation
Inline
- Fix fuel-related OpenCB issues #26898
- Fix
summonInlinedeferred inline selection #26002 - Fix "Since 3.8.0-RC1, inline match with inlined values sometimes does not compile as it erases values that it accesses" #24935
- Copy erased flag into inline access proxies #26191
- Fix (#26178) private inline subclass access proxy bug #26176
- Speed up inlining #26823
- Do not reuse the def's TypeTree when wrapping rhs for inlining #26976
- Make parameter proxies of inline methods have explicit types #26989
Java Interop
- Add support for java records in pattern matching #26497
- Feat: support Java 25 main class discovery #26642
JDK
- Replace synchronized(this) with lock-free initState in LazyList #26100
- Parse classfile generic parameters defined in supertype generic signature #26317
- Handle missing Java inner class dependencies in classfile parser #26673
Standard Library
- Add an implementation of IsSeq for IArray. #24552
- Add an implementation of BuildFrom for IArray #24674
- Add CanEqual instance for NamedTuple #24890
- Add string singleton comparison operators to scala.compiletime.ops.string. #24748
- Chore: remove old support for
getClassinscala.AnyVal#24687 - Chore:
StringContextmethods are not Scala 2 macros anymore #24407 - Replace runtime.Rich* implicits on primitives by direct extension methods. #23872
- Add implicit conversion from IArray.type to Factory #24675
- Remove all uses of
String.formatfrom the standard library. #26568 - Fix
Booleanscaladoc to match other primitives re: extensions #26659 - Fix Enumeration.ValueSet.iteratorFrom for negative IDs [#26672](htt...
3.10.0-RC3
Backported changes
- Bump Scala CLI to v1.17.0 (was v1.16.0) #27055
- Bump Scala CLI to v1.17.1 (was v1.17.0) #27107
- Do not reuse the def's TypeTree when when wrapping rhs for inlining #26976
- Fix Windows-only stack overflow #27027
- Re-fix #26959 by avoiding Unit =:= on class refs to fix cyclic TASTy load #27045
- Fix
$warning and rewrite on already-backticked names. #27050 - Make parameter proxies of inline methods have explicit types #26989
- Simplify classpath code #26712
- bugfix: Allow to use sourcepath even if binary files already exist #27086
- Fix backend crash for
null.hashCode, clean up #27094
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.10.0-RC2..3.10.0-RC3 these are:
4 Jamie Thompson
3 Piotr Chabelski
3 Solal Pirelli
2 Wojciech Mazur
1 Jan Chyb
1 Martin Odersky
1 Tomasz Godzik
3.10.0-RC2
Backported changes
- Add support for Java records in pattern matching #26497
- Only run trait specialization passes when compilation units contain inline traits #26842
- Rename -Xrepl-disable-display to -Xrepl-disable-evaluation #26961
- Macro interpreter: rethrow RecursionOverflow #26896
- Fix fuel-related OpenCB issues #26898
- More fuel checks #26897
- Do not emit a SYNCHRONIZED method for
Outer.this.synchronizedcalls #26998 - Increase phase ID width, stealing a bit from run ID #27006
- Minimize
Tree.symbolcalls #26914 - Remove
ThrowingReporter#26993
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges 3.10.0-RC1..3.10.0-RC2 these are:
6 Solal Pirelli
6 Wojciech Mazur
1 Jakub Warchoł
1 James You
1 Mikołaj Fornal
3.3.9-RC1
Highlights of the release
- Stop using custom fonts for Scaladoc to reduce javadoc jar size
#26393 - Improve Java generic signatures for higher-kinded types, value classes
#25540
#25744
#25631 - Exhaustiveness checking for sealed abstract Java classes
#25788 - Actionable diagnostic for missing members
#23572 - Warn on dubious negative literal syntax (
- 42,-42.abs)
#24163 - Scaladoc no longer crashes with an NPE on JDK 25
#25779
Other changes and fixes
Backend
- Box bounded arguments of HKT result types in Java generic signatures
#26787 - Handle HKT bounds in Java generic signatures
#25744 - Emit acceptable Java generic signatures for HKTs
#25540 - Unwrap refined types for Java generic signatures
#25626 - Fix Java signatures for arrays of value classes
#25631 - Fix generic signature of trait val setter
#26374 - Fix: reliably decide whether to generate static forwarders
#26510 - Fix issue with reading legal java cyclic signatures
#26775 - Do not emit Java generic signatures for trait private val setters
#26633 - Fix crash during generic signature emission for inner classes of type aliases
#26202 - Parse Java annotations on wildcard type arguments
#26187 - Test Java annotations on varargs element types
#26188 - Fix generic signatures of forwarders containing value classes
#25879 - Ignore @throws annotation on non-methods
#26802
CI
- Use
\nfor missing methods patch
#26133 - Fix #25712: Reset frozenConstraint in
TypeComparer.init()
#25766 - Enable assertions for tests and fix other issues
#26168 - Skip mixed Scala-Java tests automatically on Scala.js
#26139 - Fixes for the bisect script
#26116 - Fix broken
//> using jvmdirective in the bisect script
#26115 - Improvement: Add -Wunused:all to presentation-compiler
#26113 - Restore cmdTests and bootstrappedOnlyCmdTests execution in CI
#26082 - Deduplicate community build projects list
#26054 - Promote t750 #25961
- Resurrect some Scala 2 tests for generic signatures
#25736 - Fix main build: use vcBoxing instead of unboxedVCs
#25710 - [tools] Improvements and cleanups to bisect script
#25698 - Restore test #25671
- Add tests from #25703
- Add tests from #26813
Coverage
- Scoverage: Fix coverage parameterless select qualifier casts
#26087 - Scoverage: Enable passing coverage tests
#26090 - Scoverage: correctly detect curried constructor applications
#26048 - Scoverage: fix broken warnings related to tail recursion and infinite loop
detection #25941 - Scoverage: do not instrument methods that have too large bodies
#25629 - Fix separate compilation tests failing under coverage
#25604 - Ignore coverage probes in unused update analysis
#26711
Dependency Upgrades
- Bump coursier to 2.1.25-M25 (was 2.1.25-M24)
#26057 - Update
scalajs-env-nodejsto 1.6.0
#26095 Bump
jekyll-sass-converter from 2.2.0 to 3.0.0 in /docs/_spec
#25963 - Bump rouge from 3.30.0 to 4.7.0 in /docs/_spec
#25964 - Update all dependencies #25959
- Update a few dependencies #25952
- Bump VirtusLab/scala-cli-setup from 1.11 to 1.13
#25846
Desugaring
- Use updated params when desugaring macro context bounds
#26206 - Desugaring: avoid patdef optimization for lazy vals
#26770
Enums
- Regression test for #25723
#26205 - Adjust error on bad enum #23080
- Fix memberType for constructor params
#25669
Erasure
Experimental: Capture Checking
- Make type arguments to default methods InferredTypeTrees
#25852
Implicits
- Also map types in Implicits.emitDictionary
#26143 - Remove questionable transform of Select from
SelectStatic
#25620 - Fixes #24914 Treat equivalent candidates as divergent in implicit search
#25910
Incremental Compilation
- Fix #25894: break cross-unit cyclic export on partial recompile
#25900 - Ignore annotations no longer on the classpath in ExtractAPI
#25889
Inline
- Add regression test for 12577.scala
#26256 - [OpenCB Project Fix] Fixes #26015: Start of NoSpan in adaptToArgs fallBack
#26017 - Fix regression: special case Symbol-less overloaded TermRefs in Inliner
#26853 - Fix (#26178) private inline subclass access proxy bug
#26176
Lambda Lift
Linting
- Improve unused check of variable in assignment body
#24685 - Tweak -Wconf:help for correctness
#25615 - Fix false unused-var warning on self-assignment reads (#26620)
#26635
Opaque Types
- Fixes #25754: Preserve apply result type after beta reducing through opaque
proxies #25988 - Fix crash on invalid opaque type in package
#26118 - Add regression test for i15050
#26110
Match Types
Parser
- Warn dubious negative literal syntax
#24163 - Check ascription in valdef pattern
#25597 - Parser: Recover from unclosed string literal errors
#26763 - Warn if name of empty template has trailing colon
#23907
Pattern Matching
- Fix crash when
unapplyreturns a Boolean-deriving opaque type
#26658 - Preserve GADT constraints until PatternMatcher
#26805 - Make sealed abstract java classes exhaustive checkable
#25788
Pickling
- Fixes #25947, #11043: Avoid JavaArrayType in synthesized classOf for
structural calls #26028 - Fixes #25801: Handle
TypeDefsinensureHasSym
#26011
Presentation Compiler
3.10.0-RC1
Breaking changes
- Don't infer implicits from non-accessible companion #25367
- Enhance constant-folding during inlining #25731
- Replace catching StackOverflowError with fuel #25937
- Forbid
thisin top-level definitions #26448 - Replace runtime.Rich* implicits on primitives by direct extension methods. #23872
- Make
->sugar an inline method #24728 - Make
withtype operator an error #26545 - For bytecode generation, use stock ASM (not our old scala-asm fork) #26772
Highlights of the release
- Add support for
\sspace escape #26515 - Add support for
//> using depdirectives in the REPL (along with trailing code) #26507 - Add .deb and .rpm packaging #26858
- New stablized features:
- SIP 71: strictEqualityPatternMatching is now enabled by default default & add deprecation mechanics for
-languagefeature flags #26424
- SIP 71: strictEqualityPatternMatching is now enabled by default default & add deprecation mechanics for
- New preview features:
- New experimental features:
Other changes and fixes
Annotations
- Add regression test for Java annotation
@Retentionvisibility (#389) #26339 - Synthetic cast must not break tailrec #26343
- Deprecate
scala.annotation.strictfp#24839
Backend
- More accurate generic signatures for boxed primitives #25944
- Do not emit unnecessary fields for nested objects #25538
- For bytecode generation, use stock ASM (not our old scala-asm fork) #25989
- Layer JVM backend without cycles #26237
Desugaring
- Use updated params when desugaring macro context bounds #26206
Scaladoc
- Scaladoc: find members ending in
!or$#26739 - Scaladoc: Do not crash on class+module in API package #26766
- Scaladoc: Do not allow resolving warnings to hide each other #26742
- Scaladoc: Recursively unwrap exported trees #26737
- Scaladoc: Stop hijacking link clicks #26664
- Scaladoc: stay on the same page when switching versions #26762
- Disable bogus Scaladoc warnings #26663
Documentation
- Drop: remove access to
Predef.any2stringadd#24656 - Fixes to
intodoc #26203 - Fix markdown code fences in PartialFunction.scala #26397
- Util, io, ref (8): filled in
@param,@tparam, and@returntags that were missed last time #26127 - Jdk (7): filled in
@param,@tparam, and@returntags that were missed last time #26126 - Root files (9): filled in
@param,@tparam, and@returntags that were missed last time #26125 - Collection immutable (3): filled in
@param,@tparam, and@returntags that were missed last time #26121 - Collection mutable (2): filled in
@param,@tparam, and@returntags that were missed last time #26120 - Quoted, compiletime (6): filled in
@param,@tparam, and@returntags that were missed last time #26124 - Annotation, reflect, misc (11): fill in missing
@param,@tparam, and@returntags in Scaladoc comments #25381 - Sys, concurrent, runtime (1): filled in
@param,@tparam, and@returntags that were missed last time #26119 - Collection core (4): filled in
@param,@tparam, and@returntags that were missed last time #26122 - Math (5): filled in
@param,@tparam, and@returntags that were missed last time #26123 - Fix scaladoc link check for into #26207
Extension Methods
- Fix: prevent infinite recursion in compareAppliedTypeParamRef #26608
- Fix regression: more frequently cast the result of transparent inline #26684
Implicits
- Also map types in Implicits.emitDictionary #26143
Incremental Compilation
Inline
- Fix fuel-related OpenCB issues #26898
- Fix
summonInlinedeferred inline selection #26002 - Fix "Since 3.8.0-RC1, inline match with inlined values sometimes does not compile as it erases values that it accesses" #24935
- Copy erased flag into inline access proxies #26191
- Fix (#26178) private inline subclass access proxy bug #26176
- Speed up inlining #26823
Java Interop
- Add support for java records in pattern matching #26497
- Feat: support Java 25 main class discovery #26642
JDK
- Replace synchronized(this) with lock-free initState in LazyList #26100
- Parse classfile generic parameters defined in supertype generic signature #26317
- Handle missing Java inner class dependencies in classfile parser #26673
Standard Library
- Make
scala.util.ChainingOpsmethodsinline#24725 - Add an implementation of IsSeq for IArray. #24552
- Add an implementation of BuildFrom for IArray #24674
- Add CanEqual instance for NamedTuple #24890
- Add string singleton comparison operators to scala.compiletime.ops.string. #24748
- Chore: remove old support for
getClassinscala.AnyVal#24687 - Chore:
StringContextmethods are not Scala 2 macros anymore #24407 - Replace runtime.Rich* implicits on primitives by direct extension methods. #23872
- Add implicit conversion from IArray.type to Factory #24675
- Remove all uses of
String.formatfrom the standard library. #26568 - Fix
Booleanscaladoc to match other primitives re: extensions #26659 - Fix Enumeration.ValueSet.iteratorFrom for negative IDs #26672
- Fix: LongMap.put returning None for existing Long.MinValue key #26274
- Perf: fix redundant rootNode.diff computation in HashSet.diff #26275
- Perf: eliminate redundant getHash calls in HashMap/HashSet concat #26278
- Perf: skip builder allocation for empty source in HashMap.from #26280
- Perf: eliminate local object allocation in RedBlackTree.partitionEntries #26285
- Perf: ArrayDeque.clear() from O(n) to O(1) with GC-safe nulling #26288
- Perf: use bound variable in ArrayOps.WithFilter.flatMap #26294