Skip to content

Commit 1d9abd2

Browse files
committed
SI-7564 Fix detection of reflective calls on Avian
Base_1.scala checks whether reflection was used by inspecting the stacktrace and looking for “java.lang.reflect.”. The stacktrace looks differently on Avian and therefore the test fails. This change looks for “sun.reflect.” instead, which seems to work on OpenJDK and Avian.
1 parent 5312d63 commit 1d9abd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/files/run/t3425b/Base_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ABC extends A with B with C {
99
private def reflected = (
1010
Thread.currentThread.getStackTrace
1111
takeWhile (_.getMethodName != "main")
12-
exists (_.toString contains "java.lang.reflect.")
12+
exists (_.toString contains "sun.reflect.")
1313
)
1414
lazy val y: PQ = new PQ(reflected)
1515
}

0 commit comments

Comments
 (0)