From 723152b85f0e17cef9501d87621717d06d6fecb0 Mon Sep 17 00:00:00 2001 From: Jolan Rensen Date: Mon, 25 Mar 2024 22:52:50 +0100 Subject: [PATCH] fixed conversions for scala 2.12 --- .../main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt b/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt index 9c570738..44da4147 100644 --- a/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt +++ b/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt @@ -134,7 +134,7 @@ fun Iterable.asScalaSeq(): ScalaImmutableSeq = //#if scalaCompat >= 2.13 scala.jdk.javaapi.CollectionConverters.asScala(this).toSeq() //#else - //$scala.collection.JavaConverters.iterableAsScalaIterable(this).toSeq() + //$scala.collection.immutable.`Seq$`.`MODULE$`.apply(scala.collection.JavaConverters.iterableAsScalaIterable(this).toSeq()) as ScalaImmutableSeq //#endif //#if scalaCompat >= 2.13