Skip to content

Commit

Permalink
[HOTFIX] Fix Scala 2.11 compilation
Browse files Browse the repository at this point in the history
by explicitly marking annotated parameters as vals (SI-8813).

Caused by #10835.

Author: Andrew Or <andrew@databricks.com>

Closes #10955 from andrewor14/fix-scala211.
  • Loading branch information
Andrew Or authored and yhuai committed Jan 27, 2016
1 parent ef96cd3 commit d702f0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/scala/org/apache/spark/Accumulable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d702f0c

Please sign in to comment.