From b0c36c7a7c646caf95c7cda4a91681d243a0508d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 24 Jun 2008 12:45:25 +0000 Subject: lazy vals cannot override strict vals and vice ... lazy vals cannot override strict vals and vice versa; fixed initialization bugs that caused scala and fsc to fail. --- src/compiler/scala/tools/nsc/CompileClient.scala | 6 ++---- src/compiler/scala/tools/nsc/GenericRunnerCommand.scala | 2 ++ src/compiler/scala/tools/nsc/Global.scala | 6 +++--- src/compiler/scala/tools/nsc/IdeSupport.scala | 5 +++-- src/compiler/scala/tools/nsc/InterpreterCommand.scala | 2 +- src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 ++ src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 9 ++++++--- src/compiler/scala/tools/nsc/typechecker/Typers.scala | 3 ++- 8 files changed, 21 insertions(+), 14 deletions(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index 0a3e47f8e9..6bac62aefd 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -8,8 +8,6 @@ package scala.tools.nsc import java.io.{BufferedReader, File, InputStreamReader, PrintWriter} -import scala.tools.util.StringOps - /** The client part of the fsc offline compiler. Instead of compiling * things itself, it send requests to a CompileServer. */ @@ -39,12 +37,12 @@ class StandardCompileClient { val fileEnding = Properties.fileEndingString protected def normalize(args: Array[String]): (String, String) = { - var i = 0 + var i = 0 val vmArgs = new StringBuilder var serverAdr = "" while (i < args.length) { val arg = args(i) - if (arg endsWith fileEnding) { + if (fileEnding split ("\\|") exists (arg endsWith _)) { args(i) = absFileName(arg) } else if (arg startsWith "-J") { //see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html#J diff --git a/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala b/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala index 520d1b6055..094b2b4d1f 100644 --- a/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala +++ b/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala @@ -50,6 +50,8 @@ extends CompilerCommand(allargs, settings, error, false) } } + processArguments() + override def usageMsg = { cmdName + " [