diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2006-05-19 14:55:15 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2006-05-19 14:55:15 +0000 |
commit | ef2de304b1cafdf7bc4f0230f73ed084455fa450 (patch) | |
tree | c8d6717966d3c4c955201cc9c591648776bfc7c4 /src/compiler/scala/tools/nsc/Global.scala | |
parent | f746ce36d86a08c8456f5fae04459addcdd2c62d (diff) | |
download | scala-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.scala | 3 |
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 { |