diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-03-15 17:34:21 +0100 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-03-15 17:34:21 +0100 |
commit | ef85a105bd958e4f925fa524d15f8e63d5f4c1a9 (patch) | |
tree | d45ef902767c4a77f9cdead802c8c03dbf76e1a1 /test/files/run | |
parent | b7b4f877326acd6a8a24ff60fa1638cc18143c45 (diff) | |
download | scala-ef85a105bd958e4f925fa524d15f8e63d5f4c1a9.tar.gz scala-ef85a105bd958e4f925fa524d15f8e63d5f4c1a9.tar.bz2 scala-ef85a105bd958e4f925fa524d15f8e63d5f4c1a9.zip |
SI-7258 Don't assume order of reflection values in t6223
test/files/run/t6223's check file expects a specific
ordering of the reflected values. The ordering is not
guaranteed by the runtime/reflection API and can change.
Therefore, sort the values before comparing them.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t6223.check | 2 | ||||
-rw-r--r-- | test/files/run/t6223.scala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/t6223.check b/test/files/run/t6223.check index 90ec019407..f83799bab1 100644 --- a/test/files/run/t6223.check +++ b/test/files/run/t6223.check @@ -1,4 +1,4 @@ bar -bar$mcI$sp bar$mIc$sp bar$mIcI$sp +bar$mcI$sp
\ No newline at end of file diff --git a/test/files/run/t6223.scala b/test/files/run/t6223.scala index 4ab7c832e6..0996ea1c45 100644 --- a/test/files/run/t6223.scala +++ b/test/files/run/t6223.scala @@ -5,7 +5,7 @@ class Foo[@specialized(Int) A](a:A) { object Test { def main(args:Array[String]) { val f = new Foo(333) - val ms = f.getClass().getDeclaredMethods() - ms.foreach(m => println(m.getName)) + val ms = f.getClass().getDeclaredMethods().map(_.getName).sorted + ms.foreach(println) } } |