Skip to content

Commit 0ab212b

Browse files
committed
fixed streaming test scala 2.12
1 parent 37eec64 commit 0ab212b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: gradle-plugin/src/main/kotlin/org/jetbrains/kotlinx/spark/api/gradlePlugin/SparkKotlinCompilerGradlePlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class SparkKotlinCompilerGradlePlugin : KotlinCompilerPluginSupportPlugin {
1919
it.extensions.findByType<KotlinJvmProjectExtension>()?.apply {
2020
compilerOptions {
2121
// Make sure the parameters of data classes are visible to scala
22-
javaParameters.set(true)
22+
// javaParameters.set(true)
2323

2424
// Avoid NotSerializableException by making lambdas serializable
2525
freeCompilerArgs.add("-Xlambdas=class")

Diff for: kotlin-spark-api/src/test/kotlin/org/jetbrains/kotlinx/spark/api/StreamingTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ private fun checkpointFile(checkpointDir: String, checkpointTime: Time): Path {
219219
private fun getCheckpointFiles(
220220
checkpointDir: String,
221221
fs: scala.Option<FileSystem>
222-
): scala.collection.immutable.Seq<Path> {
222+
): scala.collection.Seq<Path> {
223223
val klass = Class.forName("org.apache.spark.streaming.Checkpoint$")
224224
val moduleField = klass.getField("MODULE$").also { it.isAccessible = true }
225225
val module = moduleField.get(null)
226226
val getCheckpointFilesMethod = klass.getMethod("getCheckpointFiles", String::class.java, scala.Option::class.java)
227227
.also { it.isAccessible = true }
228-
return getCheckpointFilesMethod.invoke(module, checkpointDir, fs) as scala.collection.immutable.Seq<Path>
228+
return getCheckpointFilesMethod.invoke(module, checkpointDir, fs) as scala.collection.Seq<Path>
229229
}
230230

231231
private fun createCorruptedCheckpoint(): String {

0 commit comments

Comments
 (0)