diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-02 01:18:27 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-02 01:27:46 -0700 |
commit | 90d2bee45b25844f809f8c5300aefcb1bfe9e336 (patch) | |
tree | 6537e84683dae3f64c17f17bdcfe7cc177fd1a46 /test/files/run | |
parent | b27abca41a2503747b3aeeecf8b8cb355159265f (diff) | |
download | scala-90d2bee45b25844f809f8c5300aefcb1bfe9e336.tar.gz scala-90d2bee45b25844f809f8c5300aefcb1bfe9e336.tar.bz2 scala-90d2bee45b25844f809f8c5300aefcb1bfe9e336.zip |
Fixs for reflection and getSimpleName.
Since getSimpleName will be crashing us indefinitely, took the
expedient route and wrapped the call.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/reflection-simple.check | 45 | ||||
-rw-r--r-- | test/files/run/reflection-simple.scala | 11 |
2 files changed, 56 insertions, 0 deletions
diff --git a/test/files/run/reflection-simple.check b/test/files/run/reflection-simple.check new file mode 100644 index 0000000000..671d9d2716 --- /dev/null +++ b/test/files/run/reflection-simple.check @@ -0,0 +1,45 @@ +Running +constructor Foo$3 +constructor Object +method != +method != +method ## +method $asInstanceOf +method $init$ +method $isInstanceOf +method == +method == +method _1 +method _2 +method _3 +method a +method asInstanceOf +method b +method c +method canEqual +method clone +method copy +method copy$default$1 +method copy$default$2 +method copy$default$3 +method eq +method equals +method finalize +method getClass +method hashCode +method isInstanceOf +method ne +method notify +method notifyAll +method productArity +method productElement +method productIterator +method productPrefix +method synchronized +method toString +method wait +method wait +method wait +value a +value b +value c 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 + } +} |