diff options
Diffstat (limited to 'sources/scalac/backend')
-rw-r--r-- | sources/scalac/backend/msil/GenMSIL.java | 6 | ||||
-rw-r--r-- | sources/scalac/backend/msil/TypeCreator.java | 6 |
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; |