summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/internal/SymbolTable.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-22 19:35:45 -0800
committerPaul Phillips <paulp@improving.org>2011-12-22 19:35:45 -0800
commit5ee9a14a489c6e56c331914e9db258c0473d4d23 (patch)
tree49143e82ab428d3da7d9318688899931aa22190e /src/compiler/scala/reflect/internal/SymbolTable.scala
parente72e1686bb8d06937fe93f181fbda5cc6c2041da (diff)
downloadscala-5ee9a14a489c6e56c331914e9db258c0473d4d23.tar.gz
scala-5ee9a14a489c6e56c331914e9db258c0473d4d23.tar.bz2
scala-5ee9a14a489c6e56c331914e9db258c0473d4d23.zip
global.abort calls global.error.
Otherwise it is possible (as I discovered the hard way) for tests running into compiler bugs to be treated as successful compiles.
Diffstat (limited to 'src/compiler/scala/reflect/internal/SymbolTable.scala')
-rw-r--r--src/compiler/scala/reflect/internal/SymbolTable.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/reflect/internal/SymbolTable.scala b/src/compiler/scala/reflect/internal/SymbolTable.scala
index 0e9210f1f7..29ac5fe539 100644
--- a/src/compiler/scala/reflect/internal/SymbolTable.scala
+++ b/src/compiler/scala/reflect/internal/SymbolTable.scala
@@ -31,8 +31,8 @@ abstract class SymbolTable extends api.Universe
{
def rootLoader: LazyType
def log(msg: => AnyRef): Unit
- def abort(msg: String): Nothing = throw new Error(msg)
- def abort(): Nothing = throw new Error()
+ def abort(msg: String): Nothing = throw new FatalError(msg)
+ def abort(): Nothing = abort("unknown error")
/** Override with final implementation for inlining. */
def debuglog(msg: => String): Unit = if (settings.debug.value) log(msg)