summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/internal/SymbolTable.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-12 21:37:51 +0100
committerPaul Phillips <paulp@improving.org>2012-04-12 21:56:21 +0100
commit90960a13840a0b64590d70c49234e71668834f87 (patch)
tree0dff5730e8593375625e972c19e7675ce173d123 /src/compiler/scala/reflect/internal/SymbolTable.scala
parent08505bd4ec1216be7913607b84e54942f9153329 (diff)
downloadscala-90960a13840a0b64590d70c49234e71668834f87.tar.gz
scala-90960a13840a0b64590d70c49234e71668834f87.tar.bz2
scala-90960a13840a0b64590d70c49234e71668834f87.zip
Workaround for SI-5657.
Changes to error handling have had unfortunate effects on the repl. Disabling things which used to work to suppress new failures.
Diffstat (limited to 'src/compiler/scala/reflect/internal/SymbolTable.scala')
-rw-r--r--src/compiler/scala/reflect/internal/SymbolTable.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/SymbolTable.scala b/src/compiler/scala/reflect/internal/SymbolTable.scala
index ffc8178528..5ed37c04ad 100644
--- a/src/compiler/scala/reflect/internal/SymbolTable.scala
+++ b/src/compiler/scala/reflect/internal/SymbolTable.scala
@@ -52,6 +52,13 @@ abstract class SymbolTable extends api.Universe
/** Overridden when we know more about what was happening during a failure. */
def supplementErrorMessage(msg: String): String = msg
+
+ private[scala] def printCaller[T](msg: String)(result: T) = {
+ Console.err.println(msg + ": " + result)
+ Console.err.println("Called from:")
+ (new Throwable).getStackTrace.drop(2).take(15).foreach(Console.err.println)
+ result
+ }
private[scala] def printResult[T](msg: String)(result: T) = {
Console.err.println(msg + ": " + result)