File tree 3 files changed +5
-2
lines changed 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ trait BCodeIdiomatic {
39
39
case (None , None ) => " 8" // least supported version by default
40
40
41
41
42
+ // Keep synchronized with `minTargetVersion` and `maxTargetVersion` in ScalaSettings
42
43
lazy val classfileVersion : Int = target match {
43
44
case " 8" => asm.Opcodes .V1_8
44
45
case " 9" => asm.Opcodes .V9
@@ -48,6 +49,7 @@ trait BCodeIdiomatic {
48
49
case " 13" => asm.Opcodes .V13
49
50
case " 14" => asm.Opcodes .V14
50
51
case " 15" => asm.Opcodes .V15
52
+ case " 16" => asm.Opcodes .V16
51
53
}
52
54
53
55
lazy val majorVersion : Int = (classfileVersion & 0xFF )
Original file line number Diff line number Diff line change @@ -72,8 +72,9 @@ trait CommonScalaSettings { self: Settings.SettingGroup =>
72
72
}
73
73
74
74
class ScalaSettings extends Settings .SettingGroup with CommonScalaSettings {
75
+ // Keep synchronized with `classfileVersion` in `BCodeIdiomatic`
75
76
private val minTargetVersion = 8
76
- private val maxTargetVersion = 15
77
+ private val maxTargetVersion = 16
77
78
78
79
private def supportedTargetVersions : List [String ] =
79
80
(minTargetVersion to maxTargetVersion).toList.map(_.toString)
Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ object Build {
491
491
492
492
// get libraries onboard
493
493
libraryDependencies ++= Seq (
494
- " org.scala-lang.modules" % " scala-asm" % " 7.3.1 -scala-1" , // used by the backend
494
+ " org.scala-lang.modules" % " scala-asm" % " 9.0.0 -scala-1" , // used by the backend
495
495
Dependencies .oldCompilerInterface, // we stick to the old version to avoid deprecation warnings
496
496
" org.jline" % " jline-reader" % " 3.15.0" , // used by the REPL
497
497
" org.jline" % " jline-terminal" % " 3.15.0" ,
You can’t perform that action at this time.
0 commit comments