summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2005-11-07 14:43:06 +0000
committermihaylov <mihaylov@epfl.ch>2005-11-07 14:43:06 +0000
commiteba1c026d1f43e935864cb93f99f6c5515d90062 (patch)
tree1688be7695fdddfb7922ed8a60d9240128e361a6 /sources
parent14203ea9e97bcba149b195dbac4d3ec2a8c863ac (diff)
downloadscala-eba1c026d1f43e935864cb93f99f6c5515d90062.tar.gz
scala-eba1c026d1f43e935864cb93f99f6c5515d90062.tar.bz2
scala-eba1c026d1f43e935864cb93f99f6c5515d90062.zip
Reverted to using System.exit due to bootstrap ...
Reverted to using System.exit due to bootstrap problem. wait for the new release to change back to Predef.exit
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/Main.scala2
-rw-r--r--sources/scala/tools/scalac/transformer/TransMatch.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/sources/scala/tools/scalac/Main.scala b/sources/scala/tools/scalac/Main.scala
index 3a2fe35dea..1542f98a21 100644
--- a/sources/scala/tools/scalac/Main.scala
+++ b/sources/scala/tools/scalac/Main.scala
@@ -65,7 +65,7 @@ object Main {
}
}
if( exitOnError ) {
- exit(if (reporter.errors() > 0 || !ok) 1 else 0);
+ System.exit(if (reporter.errors() > 0 || !ok) 1 else 0);
}
}
}
diff --git a/sources/scala/tools/scalac/transformer/TransMatch.scala b/sources/scala/tools/scalac/transformer/TransMatch.scala
index f5f447a15c..509e922e32 100644
--- a/sources/scala/tools/scalac/transformer/TransMatch.scala
+++ b/sources/scala/tools/scalac/transformer/TransMatch.scala
@@ -342,7 +342,7 @@ class TransMatch( global:scalac_Global )
Console.print(" unit "+cunit);
Console.println(" with exception:"+e.getMessage());
//e.printStackTrace();
- exit(-1); //Debug.abort()
+ System.exit(-1); //Debug.abort()
}
if (global.log()) {
global.log("internal pattern matching structure");