summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-sorted-decls.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-08-21 16:42:58 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-21 16:42:58 +0200
commitdfc6928383dbeddf4e24560ae24556717abb751b (patch)
treec47659bf6967e426294047051c3feac82b33b71d /test/files/run/reflection-sorted-decls.scala
parent1ab4994990a21c1ea4dadcf15368013d89456ca6 (diff)
downloadscala-dfc6928383dbeddf4e24560ae24556717abb751b.tar.gz
scala-dfc6928383dbeddf4e24560ae24556717abb751b.tar.bz2
scala-dfc6928383dbeddf4e24560ae24556717abb751b.zip
fixes non-determinism in reflection-sorted-decls
ordering of synthetic members on java7 with a lot of cores is non-deterministic that's not a problem, because the doc doesn't promise anything about synthetics hence I've adjusted the test, so that it no longer includes accessors discussion: http://groups.google.com/group/scala-internals/msg/087a7d4805313561
Diffstat (limited to 'test/files/run/reflection-sorted-decls.scala')
-rw-r--r--test/files/run/reflection-sorted-decls.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/reflection-sorted-decls.scala b/test/files/run/reflection-sorted-decls.scala
index 242f17d9bb..5616e10b3b 100644
--- a/test/files/run/reflection-sorted-decls.scala
+++ b/test/files/run/reflection-sorted-decls.scala
@@ -3,6 +3,6 @@ object Test {
class Foo(val a: Int, val b: Int, val c: Int)
import scala.reflect.runtime.{currentMirror => cm}
val decls = cm.classSymbol(classOf[Foo]).typeSignature.declarations
- decls.sorted.toList foreach System.out.println
+ decls.sorted.toList.filter(!_.isMethod) foreach System.out.println
}
}