summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-03-20 16:11:06 -0700
committerJames Iry <jamesiry@gmail.com>2013-03-20 16:11:06 -0700
commitfab81c9a6fcc732659cca0c51e8fb3c539d7bc55 (patch)
treed541baa0bfeb76823abbbb5a2548e86b76dfad58 /test
parent241c8c0b6f79436e7cd53b28a18d1db6d2b6b5bb (diff)
parentef85a105bd958e4f925fa524d15f8e63d5f4c1a9 (diff)
downloadscala-fab81c9a6fcc732659cca0c51e8fb3c539d7bc55.tar.gz
scala-fab81c9a6fcc732659cca0c51e8fb3c539d7bc55.tar.bz2
scala-fab81c9a6fcc732659cca0c51e8fb3c539d7bc55.zip
Merge pull request #2261 from soc/SI-7258
SI-7258 Don't assume order of reflection values in t6223
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t6223.check2
-rw-r--r--test/files/run/t6223.scala4
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)
}
}