diff options
author | Andrew Or <andrew@databricks.com> | 2016-01-27 14:01:55 -0800 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-01-27 14:01:55 -0800 |
commit | d702f0c170d5c39df501e173813f8a7718e3b3c6 (patch) | |
tree | 8917c4ee774afb8923526d4081c81e4f76409995 | |
parent | ef96cd3c521c175878c38a1ed6eeeab0ed8346b5 (diff) | |
download | spark-d702f0c170d5c39df501e173813f8a7718e3b3c6.tar.gz spark-d702f0c170d5c39df501e173813f8a7718e3b3c6.tar.bz2 spark-d702f0c170d5c39df501e173813f8a7718e3b3c6.zip |
[HOTFIX] Fix Scala 2.11 compilation
by explicitly marking annotated parameters as vals (SI-8813).
Caused by #10835.
Author: Andrew Or <andrew@databricks.com>
Closes #10955 from andrewor14/fix-scala211.
-rw-r--r-- | core/src/main/scala/org/apache/spark/Accumulable.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/Accumulable.scala b/core/src/main/scala/org/apache/spark/Accumulable.scala index bde136141f..52f572b63f 100644 --- a/core/src/main/scala/org/apache/spark/Accumulable.scala +++ b/core/src/main/scala/org/apache/spark/Accumulable.scala @@ -57,7 +57,8 @@ import org.apache.spark.util.Utils */ class Accumulable[R, T] private ( val id: Long, - @transient initialValue: R, + // SI-8813: This must explicitly be a private val, or else scala 2.11 doesn't compile + @transient private val initialValue: R, param: AccumulableParam[R, T], val name: Option[String], internal: Boolean, |