From ef2de304b1cafdf7bc4f0230f73ed084455fa450 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Fri, 19 May 2006 14:55:15 +0000 Subject: Fixed two try-finally bugs. --- src/compiler/scala/tools/nsc/Global.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/nsc/Global.scala') diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index c6569088d0..3002f34b58 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -571,7 +571,8 @@ class Global(val settings: Settings, val reporter: Reporter) extends SymbolTable private def writeICode(): Unit = { val printer = new icodePrinter.TextPrinter(null, icodes.linearizer); icodes.classes.values.foreach((cls) => { - var file = getFile(cls.symbol, ".icode"); + val suffix = if (cls.symbol.hasFlag(Flags.MODULE)) "$.icode" else ".icode"; + var file = getFile(cls.symbol, suffix); // if (file.exists()) // file = new File(file.getParentFile(), file.getName() + "1"); try { -- cgit v1.2.3