You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may want to complete Upgrading to Scala 2.13 #2 first - old project dependencies may use bytecode-manipulation libraries that don't yet support Java 21. Updating to Scala 2.13 will give you a better chance of having up-to-date dependencies that can handle Java 11.
Using a version of sbt that's too old while running under Java 21 will give an error like this:
error:
bad constant pool index: 0 at pos: 48461
while compiling: <no file>
during phase: globalPhase=<no phase>, enteringPhase=<some phase>
library version: version 2.12.16
compiler version: version 2.12.16
reconstructed args: -classpath /home/runner/.sbt/boot/scala-2.12.16/lib/scala-library.jar -Yrangepos
Tips
Include "-release:21" in your build.sbt scalacOptions, to ensure that the project is built to support Java 21 or above.
The text was updated successfully, but these errors were encountered:
Base assumption: Project is already on Java 11
Overview
Minimum requirements
Using a version of sbt that's too old while running under Java 21 will give an error like this:
Tips
"-release:21"
in your build.sbtscalacOptions
, to ensure that the project is built to support Java 21 or above.The text was updated successfully, but these errors were encountered: