Skip to content

Commit 2f4cc4c

Browse files
authored
Update asm to 9.5 (#17286)
2 parents 3f611d8 + a599381 commit 2f4cc4c

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class BackendUtils(val postProcessor: PostProcessor) {
3535
case "18" => asm.Opcodes.V18
3636
case "19" => asm.Opcodes.V19
3737
case "20" => asm.Opcodes.V20
38+
case "21" => asm.Opcodes.V21
3839
}
3940

4041
lazy val extraProc: Int = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ScalaSettings extends SettingGroup with AllScalaSettings
1717
object ScalaSettings:
1818
// Keep synchronized with `classfileVersion` in `BackendUtils`
1919
private val minTargetVersion = 8
20-
private val maxTargetVersion = 20
20+
private val maxTargetVersion = 21
2121

2222
def supportedTargetVersions: List[String] =
2323
(minTargetVersion to maxTargetVersion).toList.map(_.toString)

project/Build.scala

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

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

tests/pos-with-compiler-cc/backend/jvm/BCodeIdiomatic.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ trait BCodeIdiomatic extends caps.Pure {
5454
case "17" => asm.Opcodes.V17
5555
case "18" => asm.Opcodes.V18
5656
case "19" => asm.Opcodes.V19
57-
case "20" => asm.Opcodes.V20*/
57+
case "20" => asm.Opcodes.V20
58+
case "21" => asm.Opcodes.V21*/
5859
}
5960

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

tests/pos-with-compiler-cc/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ScalaSettings extends SettingGroup with AllScalaSettings
1717
object ScalaSettings:
1818
// Keep synchronized with `classfileVersion` in `BCodeIdiomatic`
1919
private val minTargetVersion = 8
20-
private val maxTargetVersion = 20
20+
private val maxTargetVersion = 21
2121

2222
def supportedTargetVersions: List[String] =
2323
(minTargetVersion to maxTargetVersion).toList.map(_.toString)

0 commit comments

Comments
 (0)