From 90d2bee45b25844f809f8c5300aefcb1bfe9e336 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 2 May 2012 01:18:27 -0700 Subject: Fixs for reflection and getSimpleName. Since getSimpleName will be crashing us indefinitely, took the expedient route and wrapped the call. --- test/files/run/reflection-simple.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/run/reflection-simple.scala (limited to 'test/files/run/reflection-simple.scala') diff --git a/test/files/run/reflection-simple.scala b/test/files/run/reflection-simple.scala new file mode 100644 index 0000000000..fb3feec3cb --- /dev/null +++ b/test/files/run/reflection-simple.scala @@ -0,0 +1,11 @@ +// a.scala +// Wed May 2 01:01:22 PDT 2012 + +object Test { + def main(args: Array[String]) { + System.out.println("Running") + case class Foo(a: Int, b: Int, c: Int) + val props = reflect.mirror.classToType(classOf[Foo]).members.filter(_.isTerm).map(_.toString) + props.toList.sorted foreach System.out.println + } +} -- cgit v1.2.3