diff --git a/compiler/src/dotty/tools/backend/jvm/BCodeIdiomatic.scala b/compiler/src/dotty/tools/backend/jvm/BCodeIdiomatic.scala index 8dbf0d24d0d5..614548ff361e 100644 --- a/compiler/src/dotty/tools/backend/jvm/BCodeIdiomatic.scala +++ b/compiler/src/dotty/tools/backend/jvm/BCodeIdiomatic.scala @@ -50,6 +50,7 @@ trait BCodeIdiomatic { case "14" => asm.Opcodes.V14 case "15" => asm.Opcodes.V15 case "16" => asm.Opcodes.V16 + case "17" => asm.Opcodes.V17 } lazy val majorVersion: Int = (classfileVersion & 0xFF) diff --git a/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala b/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala index 2abe3a750079..772366ae43ba 100644 --- a/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala +++ b/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala @@ -74,7 +74,7 @@ trait CommonScalaSettings { self: Settings.SettingGroup => class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings { // Keep synchronized with `classfileVersion` in `BCodeIdiomatic` private val minTargetVersion = 8 - private val maxTargetVersion = 16 + private val maxTargetVersion = 17 private def supportedTargetVersions: List[String] = (minTargetVersion to maxTargetVersion).toList.map(_.toString) diff --git a/project/Build.scala b/project/Build.scala index e82ede50f1cd..79c9f1500f60 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -491,7 +491,7 @@ object Build { // get libraries onboard libraryDependencies ++= Seq( - "org.scala-lang.modules" % "scala-asm" % "9.0.0-scala-1", // used by the backend + "org.scala-lang.modules" % "scala-asm" % "9.1.0-scala-1", // used by the backend Dependencies.oldCompilerInterface, // we stick to the old version to avoid deprecation warnings "org.jline" % "jline-reader" % "3.15.0", // used by the REPL "org.jline" % "jline-terminal" % "3.15.0",