summaryrefslogtreecommitdiff
path: root/sources/scalac/backend
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-08-11 11:33:15 +0000
committerpaltherr <paltherr@epfl.ch>2003-08-11 11:33:15 +0000
commiteda495f66dd08d4b44bb29ec56a8dc7578056bf9 (patch)
treec291f9c2a4f7009cb27502f3fd785baf82319e6a /sources/scalac/backend
parent32f01ba87a5c1223eb9097d0a89f5203d93b8acc (diff)
downloadscala-eda495f66dd08d4b44bb29ec56a8dc7578056bf9.tar.gz
scala-eda495f66dd08d4b44bb29ec56a8dc7578056bf9.tar.bz2
scala-eda495f66dd08d4b44bb29ec56a8dc7578056bf9.zip
- Removed printing of stack traces if not in de...
- Removed printing of stack traces if not in debug mode
Diffstat (limited to 'sources/scalac/backend')
-rw-r--r--sources/scalac/backend/msil/GenMSIL.java6
-rw-r--r--sources/scalac/backend/msil/TypeCreator.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/sources/scalac/backend/msil/GenMSIL.java b/sources/scalac/backend/msil/GenMSIL.java
index ad8d26082c..eb4ba27c1c 100644
--- a/sources/scalac/backend/msil/GenMSIL.java
+++ b/sources/scalac/backend/msil/GenMSIL.java
@@ -147,7 +147,7 @@ public class GenMSIL /*implements Modifiers */ {
log("Processing method " + method.DeclaringType +
"::" +method.Name);
}
- e.printStackTrace();
+ if (global.debug) e.printStackTrace();
throw (Error) e;
}
tc.createTypes();
@@ -165,7 +165,7 @@ public class GenMSIL /*implements Modifiers */ {
}
}
catch (IOException e) {
- e.printStackTrace();
+ if (global.debug) e.printStackTrace();
}
}
}
@@ -451,7 +451,7 @@ public class GenMSIL /*implements Modifiers */ {
try { i = gen2(tree, toType); }
catch (Throwable e) {
logErr(tree.pos, "gen(): Exception");
- e.printStackTrace();
+ if (global.debug) e.printStackTrace();
System.exit(1);
throw (Error) e;
}
diff --git a/sources/scalac/backend/msil/TypeCreator.java b/sources/scalac/backend/msil/TypeCreator.java
index 5a4a8e84a5..faca45a182 100644
--- a/sources/scalac/backend/msil/TypeCreator.java
+++ b/sources/scalac/backend/msil/TypeCreator.java
@@ -313,7 +313,7 @@ public final class TypeCreator
// log("getType: Exception cought for " + dumpSym(sym));
// //log("-->symbol.type() = " + Debug.show(sym.type()));
// //log("-->symbol.info()" + Debug.show(sym.info()));
-// e.printStackTrace();
+// if (global.debug) e.printStackTrace();
// }
// return type;
// }
@@ -474,7 +474,7 @@ public final class TypeCreator
method = getMethod2(sym);
} catch (ClassCastException e) {
logErr("getMethod: " + dumpSym(sym));
- e.printStackTrace();
+ if (global.debug) e.printStackTrace();
}
return method;
}
@@ -531,7 +531,7 @@ public final class TypeCreator
method = createMethod2(sym);
} catch (RuntimeException e) {
logErr(e.getMessage());
- e.printStackTrace();
+ if (global.debug) e.printStackTrace();
System.exit(1);
}
return method;