Sean Owen created SPARK-1488: -------------------------------- Summary: Resolve scalac feature warnings during build Key: SPARK-1488 URL: https://issues.apache.org/jira/browse/SPARK-1488 Project: Spark Issue Type: Improvement Components: Build Affects Versions: 0.9.0 Reporter: Sean Owen Priority: Minor
For your consideration: scalac currently notes a number of feature warnings during compilation: {code} [warn] there were 65 feature warning(s); re-run with -feature for details {code} Warnings are like: {code} [warn] /Users/srowen/Documents/spark/core/src/main/scala/org/apache/spark/SparkContext.scala:1261: implicit conversion method rddToPairRDDFunctions should be enabled [warn] by making the implicit value scala.language.implicitConversions visible. [warn] This can be achieved by adding the import clause 'import scala.language.implicitConversions' [warn] or by setting the compiler option -language:implicitConversions. [warn] See the Scala docs for value scala.language.implicitConversions for a discussion [warn] why the feature should be explicitly enabled. [warn] implicit def rddToPairRDDFunctions[K: ClassTag, V: ClassTag](rdd: RDD[(K, V)]) = [warn] ^ {code} scalac is suggesting that it's just best practice to explicitly enable certain language features by importing them where used. The accompanying PR simply adds the imports it suggests (and squashes one other Java warning along the way). This leaves just deprecation warnings in the build. -- This message was sent by Atlassian JIRA (v6.2#6252)