You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2023/06/18 05:06:44 UTC

[GitHub] [spark] dongjoon-hyun commented on a diff in pull request #41646: [SPARK-44088][BUILD] Remove `jdk.incubator.foreign` usage in Java 21

dongjoon-hyun commented on code in PR #41646:
URL: https://github.com/apache/spark/pull/41646#discussion_r1233192306


##########
project/SparkBuild.scala:
##########
@@ -331,7 +331,13 @@ object SparkBuild extends PomBuild {
     javaOptions ++= {
       val versionParts = System.getProperty("java.version").split("[+.\\-]+", 3)
       var major = versionParts(0).toInt
-      if (major >= 16) Seq("--add-modules=jdk.incubator.vector,jdk.incubator.foreign", "-Dforeign.restricted=warn") else Seq.empty
+      if (major >= 21) {

Review Comment:
   This is a removal of `jdk.incubator.foreign`. This is the only place in our source code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org