diff --git a/compile/Eval.scala b/compile/Eval.scala index a2ddcf9f8..fa0c2a346 100644 --- a/compile/Eval.scala +++ b/compile/Eval.scala @@ -21,7 +21,7 @@ final class EvalException(msg: String) extends RuntimeException(msg) // not thread safe, since it reuses a Global instance final class Eval(optionsNoncp: Seq[String], classpath: Seq[File], mkReporter: Settings => Reporter, backing: Option[File]) { - def this(mkReporter: Settings => Reporter, backing: Option[File]) = this(Nil, IO.classLocationFile[ScalaObject] :: Nil, mkReporter, backing) + def this(mkReporter: Settings => Reporter, backing: Option[File]) = this(Nil, IO.classLocationFile[Product] :: Nil, mkReporter, backing) def this() = this(s => new ConsoleReporter(s), None) backing.foreach(IO.createDirectory) diff --git a/launch/src/test/scala/ScalaProviderTest.scala b/launch/src/test/scala/ScalaProviderTest.scala index 20a5ec5e6..853fabdd0 100644 --- a/launch/src/test/scala/ScalaProviderTest.scala +++ b/launch/src/test/scala/ScalaProviderTest.scala @@ -57,7 +57,7 @@ object ScalaProviderTest extends Specification tryScala(loader) getScalaVersion(loader) must beEqualTo(versionValue) } - private def tryScala(loader: ClassLoader): Unit = Class.forName("scala.ScalaObject", false, loader).getClassLoader must be(loader) + private def tryScala(loader: ClassLoader): Unit = Class.forName("scala.Product", false, loader).getClassLoader must be(loader) } object LaunchTest { diff --git a/sbt/src/sbt-test/compiler-project/run-test/src/main/scala/Foo.scala b/sbt/src/sbt-test/compiler-project/run-test/src/main/scala/Foo.scala index 217ef6304..872ab523e 100644 --- a/sbt/src/sbt-test/compiler-project/run-test/src/main/scala/Foo.scala +++ b/sbt/src/sbt-test/compiler-project/run-test/src/main/scala/Foo.scala @@ -12,7 +12,7 @@ class Foo { val g = new GenericRunnerSettings(System.err.println) val settings = new Settings() settings.classpath.value = location(classOf[Holder]) - settings.bootclasspath.value = settings.bootclasspath.value + / + location(classOf[ScalaObject]) + / + location(classOf[Settings]) + settings.bootclasspath.value = settings.bootclasspath.value + / + location(classOf[Product]) + / + location(classOf[Settings]) val inter = new Interpreter(settings) { override protected def parentClassLoader = Foo.this.getClass.getClassLoader } @@ -35,4 +35,4 @@ object Test val foo = new Foo args.foreach { arg => foo.eval(arg) == arg.toInt } } -} \ No newline at end of file +} diff --git a/sbt/src/sbt-test/java/scala-library/src/main/java/test/R.java b/sbt/src/sbt-test/java/scala-library/src/main/java/test/R.java index 4430bd606..a2af3783a 100644 --- a/sbt/src/sbt-test/java/scala-library/src/main/java/test/R.java +++ b/sbt/src/sbt-test/java/scala-library/src/main/java/test/R.java @@ -2,5 +2,5 @@ package test; public final class R { public static final int y = 4; - public static int x(scala.ScalaObject s) { return 3; } + public static int x(scala.Product s) { return 3; } } diff --git a/util/io/src/test/scala/FileUtilitiesSpecification.scala b/util/io/src/test/scala/FileUtilitiesSpecification.scala index 13eeef2e9..48af1a633 100644 --- a/util/io/src/test/scala/FileUtilitiesSpecification.scala +++ b/util/io/src/test/scala/FileUtilitiesSpecification.scala @@ -23,7 +23,7 @@ object WriteContentSpecification extends Properties("Write content") private def largeUnzip() = { - testUnzip[ScalaObject] + testUnzip[Product] testUnzip[scala.tools.nsc.Global] true } @@ -75,4 +75,4 @@ object WriteContentSpecification extends Properties("Write content") private def withTemporaryFile[T](f: File => T): T = withTemporaryDirectory { dir => f(new java.io.File(dir, "out")) } -} \ No newline at end of file +} diff --git a/util/process/src/test/scala/ProcessSpecification.scala b/util/process/src/test/scala/ProcessSpecification.scala index 15f9c1f48..6810025bf 100644 --- a/util/process/src/test/scala/ProcessSpecification.scala +++ b/util/process/src/test/scala/ProcessSpecification.scala @@ -82,10 +82,10 @@ private[this] object ProcessSpecification extends Properties("Process I/O") { val ignore = echo // just for the compile dependency so that this test is rerun when TestedProcess.scala changes, not used otherwise - val thisClasspath = List(getSource[ScalaObject], getSource[IO.type], getSource[SourceTag]).mkString(File.pathSeparator) + val thisClasspath = List(getSource[Product], getSource[IO.type], getSource[SourceTag]).mkString(File.pathSeparator) "java -cp " + thisClasspath + " " + command } private def getSource[T : Manifest]: String = IO.classLocationFile[T].getAbsolutePath } -private trait SourceTag \ No newline at end of file +private trait SourceTag