summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2010-08-30 10:10:27 +0000
committerIulian Dragos <jaguarul@gmail.com>2010-08-30 10:10:27 +0000
commitf61d2d2f4dd9566a82496da1ec69daf142882edd (patch)
tree59f2c169abab97956dd0738591e9a930b92e615a /src
parentc0b806f709d72cd3fa3bfdb5d745cc36a4a3b6cd (diff)
downloadscala-f61d2d2f4dd9566a82496da1ec69daf142882edd.tar.gz
scala-f61d2d2f4dd9566a82496da1ec69daf142882edd.tar.bz2
scala-f61d2d2f4dd9566a82496da1ec69daf142882edd.zip
Hardened the bytecode reader.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/Repository.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/Repository.scala b/src/compiler/scala/tools/nsc/backend/icode/Repository.scala
index fe1a514094..23e79c1a24 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/Repository.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/Repository.scala
@@ -50,7 +50,7 @@ trait Repository {
loaded += (c1.symbol -> c1)
loaded += (c2.symbol -> c2)
} catch {
- case e: MissingRequirementError =>
+ case e: Throwable => // possible exceptions are MissingRequirementError, IOException and TypeError -> no better common supertype
log("Failed to load %s. [%s]".format(sym.fullName, e.getMessage))
if (settings.debug.value)
e.printStackTrace