diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-06-08 00:01:24 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-06-08 00:04:35 +0200 |
commit | 1d9abd2dc773eb39faa150801327e043768a525f (patch) | |
tree | 54b27cdc1f393be28a7a2a075a7ed375fd910880 /test/files | |
parent | 5312d6305530eb14d369d0f4acaf7ca4e278ea72 (diff) | |
download | scala-1d9abd2dc773eb39faa150801327e043768a525f.tar.gz scala-1d9abd2dc773eb39faa150801327e043768a525f.tar.bz2 scala-1d9abd2dc773eb39faa150801327e043768a525f.zip |
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.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t3425b/Base_1.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t3425b/Base_1.scala b/test/files/run/t3425b/Base_1.scala index 02e108b320..5a660a89b2 100644 --- a/test/files/run/t3425b/Base_1.scala +++ b/test/files/run/t3425b/Base_1.scala @@ -9,7 +9,7 @@ class ABC extends A with B with C { private def reflected = ( Thread.currentThread.getStackTrace takeWhile (_.getMethodName != "main") - exists (_.toString contains "java.lang.reflect.") + exists (_.toString contains "sun.reflect.") ) lazy val y: PQ = new PQ(reflected) } |