diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-17 06:59:23 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-17 06:59:23 +0000 |
commit | 491ecd7b8b2e5a0ee1f185f26042a80e11e46568 (patch) | |
tree | 90812d869840df297b4fa9afa0a7dae43ddc1d9a /src/compiler | |
parent | 080d357a3e3c88c17626c3a2ddd6fc334cb86d2e (diff) | |
download | scala-491ecd7b8b2e5a0ee1f185f26042a80e11e46568.tar.gz scala-491ecd7b8b2e5a0ee1f185f26042a80e11e46568.tar.bz2 scala-491ecd7b8b2e5a0ee1f185f26042a80e11e46568.zip |
Reverted previous commit as I think it is wedgi...
Reverted previous commit as I think it is wedging under -optimise. No
review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index 7afa36c0ba..5a02de0907 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -15,8 +15,6 @@ import scala.tools.nsc.symtab._ import scala.tools.nsc.symtab.classfile.ClassfileConstants._ import ch.epfl.lamp.fjbg._ -import FJBGContext.FJBGWrapper -import JCode.OffsetTooBigException import JAccessFlags._ import JObjectType.{ JAVA_LANG_STRING, JAVA_LANG_OBJECT } import java.io.{ DataOutputStream } @@ -140,15 +138,6 @@ abstract class GenJVM extends SubComponent { val emitLines = debugLevel >= 2 val emitVars = debugLevel >= 3 - def analyzeException(culprit: String, t: Throwable): Unit = t match { - case x: FJBGWrapper => - analyzeException(x.culprit, x.getCause()) - case _: OffsetTooBigException => - clasz.cunit.error(clasz.symbol.pos, "cannot emit bytecode for " + culprit + ": " + t.getMessage) - case x => - throw x - } - /** Write a class to disk, adding the Scala signature (pickled type * information) and inner classes. * @@ -159,10 +148,8 @@ abstract class GenJVM extends SubComponent { addInnerClasses(jclass) val outfile = getFile(sym, jclass, ".class") val outstream = new DataOutputStream(outfile.bufferedOutput) - try jclass.writeTo(outstream) - catch { case x => analyzeException(jclass.getName(), x) } - finally outstream.close() - + jclass.writeTo(outstream) + outstream.close() informProgress("wrote " + outfile) } |