aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-12-14 19:15:18 +0100
committerMartin Odersky <odersky@gmail.com>2014-12-15 16:36:53 +0100
commit332b1af33441b382b3e1efa68c5dab4fcda8b2bc (patch)
treeb04a52702b09d8423fc053f88e1883940e27b600 /src/dotty/tools/dotc/core/Denotations.scala
parent0eec180a686a4425bd3f3089006eda530123fe2e (diff)
downloaddotty-332b1af33441b382b3e1efa68c5dab4fcda8b2bc.tar.gz
dotty-332b1af33441b382b3e1efa68c5dab4fcda8b2bc.tar.bz2
dotty-332b1af33441b382b3e1efa68c5dab4fcda8b2bc.zip
Replace Throwable catches with NonFatal
Previously, stackoverflows led to infinite loops because the catch immediately threw another stack overflow. Anyway, one should never catch Throwable.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 236bdb7f4..cd585dea1 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -386,7 +386,7 @@ object Denotations {
case info: MethodicType =>
try info.signature
catch { // !!! DEBUG
- case ex: Throwable =>
+ case scala.util.control.NonFatal(ex) =>
println(s"cannot take signature of ${info.show}")
throw ex
}