From a8277a7058f7feb58ce9b87938c238c3e2381b63 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 19 Jan 2024 09:40:38 +0100 Subject: [PATCH] Disable i19170b on JDK8 Fixes #19481 --- tests/run-staging/i19170b.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/run-staging/i19170b.scala b/tests/run-staging/i19170b.scala index 58b3f0999825..79d7e2db634f 100644 --- a/tests/run-staging/i19170b.scala +++ b/tests/run-staging/i19170b.scala @@ -8,7 +8,8 @@ class A(i: Int) def f(i: Expr[Int])(using Quotes): Expr[A] = { '{ new A($i) } } @main def Test = { - if !System.getProperty("os.name").contains("Windows") then + // The heuristic to give the extra information does not work on JDK 8 + if System.getProperty("java.specification.version") != "1.8" then try val g: Int => A = staging.run { '{ (i: Int) => ${ f('{i}) } } } println(g(3))