Skip to content

Commit 30bdc33

Browse files
Disable i19170b on JDK8 (#19484)
Fixes #19481 Fixes #19495 Fixes #19502 Followup of #19471 [test_java8] [test_windows_full]
2 parents a9a75c1 + a8277a7 commit 30bdc33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run-staging/i19170b.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class A(i: Int)
88
def f(i: Expr[Int])(using Quotes): Expr[A] = { '{ new A($i) } }
99

1010
@main def Test = {
11-
if !System.getProperty("os.name").contains("Windows") then
11+
// The heuristic to give the extra information does not work on JDK 8
12+
if System.getProperty("java.specification.version") != "1.8" then
1213
try
1314
val g: Int => A = staging.run { '{ (i: Int) => ${ f('{i}) } } }
1415
println(g(3))

0 commit comments

Comments
 (0)