From 19ca7a1edc64f98b1d3cfc96950ef5526a5f13fd Mon Sep 17 00:00:00 2001 From: Grzegorz Kossakowski Date: Tue, 18 Feb 2014 12:18:07 +0100 Subject: [PATCH] Make change to CompileSetup backwards compatible. The c7f435026ff8591085f427b8ee4d192e1f10f783 introduced a new parameter to the constructor of `CompileSetup` but it turns out that this class is being used in zinc. Introduce an overloaded variant of that constructor that preserves backwards compatibility. --- compile/inc/src/main/scala/sbt/CompileSetup.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compile/inc/src/main/scala/sbt/CompileSetup.scala b/compile/inc/src/main/scala/sbt/CompileSetup.scala index e45f85e58..11ecc6805 100644 --- a/compile/inc/src/main/scala/sbt/CompileSetup.scala +++ b/compile/inc/src/main/scala/sbt/CompileSetup.scala @@ -12,7 +12,12 @@ package sbt // (6 > 4) final class CompileOptions(val options: Seq[String], val javacOptions: Seq[String]) final class CompileSetup(val output: APIOutput, val options: CompileOptions, val compilerVersion: String, - val order: CompileOrder, val nameHashing: Boolean) + val order: CompileOrder, val nameHashing: Boolean) { + @deprecated("Use the other overloaded variant of the constructor that takes `nameHashing` value, instead.", "0.13.2") + def this(output: APIOutput, options: CompileOptions, compilerVersion: String, order: CompileOrder) = { + this(output, options, compilerVersion, order, false) + } +} object CompileSetup {