summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-05-19 14:55:15 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-05-19 14:55:15 +0000
commitef2de304b1cafdf7bc4f0230f73ed084455fa450 (patch)
treec8d6717966d3c4c955201cc9c591648776bfc7c4 /src/compiler/scala/tools/nsc/Global.scala
parentf746ce36d86a08c8456f5fae04459addcdd2c62d (diff)
downloadscala-ef2de304b1cafdf7bc4f0230f73ed084455fa450.tar.gz
scala-ef2de304b1cafdf7bc4f0230f73ed084455fa450.tar.bz2
scala-ef2de304b1cafdf7bc4f0230f73ed084455fa450.zip
Fixed two try-finally bugs.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala3
1 files changed, 2 insertions, 1 deletions
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 {