diff options
author | Martin Odersky <odersky@gmail.com> | 2011-11-09 14:52:53 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-11-09 14:52:53 +0000 |
commit | 7876a574d5d9141230113b6bbeb13f00d072c4f1 (patch) | |
tree | 554277183c8e921ea177088989d2e99789d38288 /src | |
parent | f0bd9a805fdca24bbe7a0231596cca36ff7c0466 (diff) | |
download | scala-7876a574d5d9141230113b6bbeb13f00d072c4f1.tar.gz scala-7876a574d5d9141230113b6bbeb13f00d072c4f1.tar.bz2 scala-7876a574d5d9141230113b6bbeb13f00d072c4f1.zip |
Fixed name of MODULE$ field to make scratchpad ...
Fixed name of MODULE$ field to make scratchpad work again. Need to look
into more robust way of doing things using reflection.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/scratchpad/Executor.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/scratchpad/Executor.scala b/src/compiler/scala/tools/nsc/scratchpad/Executor.scala index d45e80ed1a..d16b1e088a 100644 --- a/src/compiler/scala/tools/nsc/scratchpad/Executor.scala +++ b/src/compiler/scala/tools/nsc/scratchpad/Executor.scala @@ -36,7 +36,7 @@ object Executor { Console.setErr(newOut) try { val clazz = Class.forName(name+"$") - clazz.getField("$MODULE").get(null) + clazz.getField("MODULE$").get(null) } catch { case ex: Throwable => ultimateCause(ex) match { |