Skip to content

Commit

Permalink
Update asm to 9.4 (#16155)
Browse files Browse the repository at this point in the history
scala 2.12.x PR: scala/scala#10185
scala 2.13.x PR: scala/scala#10184
  • Loading branch information
smarter committed Nov 1, 2022
2 parents 7fd161f + 4f7b5a6 commit d84007c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/backend/jvm/BCodeIdiomatic.scala
Expand Up @@ -54,6 +54,7 @@ trait BCodeIdiomatic {
case "17" => asm.Opcodes.V17
case "18" => asm.Opcodes.V18
case "19" => asm.Opcodes.V19
case "20" => asm.Opcodes.V20
}

lazy val majorVersion: Int = (classfileVersion & 0xFF)
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
Expand Up @@ -17,7 +17,7 @@ class ScalaSettings extends SettingGroup with AllScalaSettings
object ScalaSettings:
// Keep synchronized with `classfileVersion` in `BCodeIdiomatic`
private val minTargetVersion = 8
private val maxTargetVersion = 19
private val maxTargetVersion = 20

def supportedTargetVersions: List[String] =
(minTargetVersion to maxTargetVersion).toList.map(_.toString)
Expand Down
2 changes: 1 addition & 1 deletion project/Build.scala
Expand Up @@ -545,7 +545,7 @@ object Build {

// get libraries onboard
libraryDependencies ++= Seq(
"org.scala-lang.modules" % "scala-asm" % "9.3.0-scala-1", // used by the backend
"org.scala-lang.modules" % "scala-asm" % "9.4.0-scala-1", // used by the backend
Dependencies.oldCompilerInterface, // we stick to the old version to avoid deprecation warnings
"org.jline" % "jline-reader" % "3.19.0", // used by the REPL
"org.jline" % "jline-terminal" % "3.19.0",
Expand Down

0 comments on commit d84007c

Please sign in to comment.