Skip to content

Commit a66eaf3

Browse files
authored
Merge pull request #11359 from dotty-staging/upgrade/asm-9.1
Upgrade to ASM 9.1
2 parents ef48716 + c8891ea commit a66eaf3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeIdiomatic.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ trait BCodeIdiomatic {
5050
case "14" => asm.Opcodes.V14
5151
case "15" => asm.Opcodes.V15
5252
case "16" => asm.Opcodes.V16
53+
case "17" => asm.Opcodes.V17
5354
}
5455

5556
lazy val majorVersion: Int = (classfileVersion & 0xFF)

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ trait CommonScalaSettings { self: Settings.SettingGroup =>
7474
class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings {
7575
// Keep synchronized with `classfileVersion` in `BCodeIdiomatic`
7676
private val minTargetVersion = 8
77-
private val maxTargetVersion = 16
77+
private val maxTargetVersion = 17
7878

7979
private def supportedTargetVersions: List[String] =
8080
(minTargetVersion to maxTargetVersion).toList.map(_.toString)

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ object Build {
491491

492492
// get libraries onboard
493493
libraryDependencies ++= Seq(
494-
"org.scala-lang.modules" % "scala-asm" % "9.0.0-scala-1", // used by the backend
494+
"org.scala-lang.modules" % "scala-asm" % "9.1.0-scala-1", // used by the backend
495495
Dependencies.oldCompilerInterface, // we stick to the old version to avoid deprecation warnings
496496
"org.jline" % "jline-reader" % "3.15.0", // used by the REPL
497497
"org.jline" % "jline-terminal" % "3.15.0",

0 commit comments

Comments
 (0)