The upcoming Scala 3 releases will no longer support JDK 8 as the team explores transitioning to JDK 11 or JDK 17. This shift, prompted by the removal of memory-access methods in sun.misc.Unsafe and the adoption of new JDK features, aims to alleviate maintenance challenges for developers and enhance new capabilities in the Scala ecosystem. Potential advancements include improved access control for nested classes, enhanced representations of sealed traits, and optimized pattern matching functions through JEPs introduced in newer JDK versions.
"Dropping JDK 8 will reduce the maintenance burden on tooling and library authors, allowing them to focus on fewer versions for correctness and performance."
"Switching to a newer version of the JDK would allow the compiler and the Scala ecosystem to access new features and standard library improvements from JDK 9+."
Collection
[
|
...
]