Skip to content

Use future lazy val encoding - #809

Closed
ybasket wants to merge 3 commits into
mainfrom
future-lazy-vals
Closed

ybasket wants to merge 3 commits into
mainfrom
future-lazy-vals

Conversation

@ybasket

@ybasket ybasket commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Scala 3.3.8 allows to opt in to the lazy val encoding Scala 3.8+ uses to avoid warnings/errors on JVM 25+. As we already bumped the minimum JDK version to 17, the fact that future lazy vals require 9+ is no problem. On the positive side, we avoid our users getting annoyed (or having to resort to bytecode manipulation via VirtusLab/sloth) when using JVM 25 or higher.

#805 brings the same encoding for scala-xml, so we should merge these two together. Alternatively, we could merge #803 and go straight to Scala 3.9, the new LTS which has the future lazy vals on by default. It was released only recently though and I think we don't have strong enough justification to make the bump just yet – nobody really profits, but some users may run into problems.

Scala 3.3.8 allows to opt in to the lazy val encoding Scala 3.8+ uses to avoid warnings/errors on JVM 25+. As we already bumped the minimum JDK version to 17, the fact that future lazy vals require 9+ is no problem. On the positive side, we avoid our users getting annoyed (or having to resort to bytecode manipulation via VirtusLab/sloth) when using JVM 25 or higher.
@ybasket
ybasket requested a review from a team as a code owner September 27, 2026 15:24
@ybasket

ybasket commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

Merged #803 instead.

@ybasket ybasket closed this Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant