summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-13 23:29:06 -0800
committerPaul Phillips <paulp@improving.org>2012-02-13 23:34:25 -0800
commitbd988df6448bfeacf8fa6bf35b21881d3073a547 (patch)
tree3f614e107332de6bd71903a1ca8f5311b9840820 /src
parent2b731911e97a281e324060099631e2374b2144ec (diff)
downloadscala-bd988df6448bfeacf8fa6bf35b21881d3073a547.tar.gz
scala-bd988df6448bfeacf8fa6bf35b21881d3073a547.tar.bz2
scala-bd988df6448bfeacf8fa6bf35b21881d3073a547.zip
Fix for set/list/oops bug in MutableSettings#copy.
Closes SI-5446. I am morally certain that fixes of this nature could be performed by someone who has logged fewer than ten thousand hours with the compiler.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/settings/MutableSettings.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
index b468e7c0af..f99d1399c0 100644
--- a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
+++ b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
@@ -95,8 +95,7 @@ class MutableSettings(val errorFn: String => Unit)
*/
def copy(): Settings = {
val s = new Settings()
- val xs = userSetSettings flatMap (_.unparse)
- s.processArguments(xs.toList, true)
+ s.processArguments(recreateArgs, true)
s
}