[ 
https://issues.apache.org/jira/browse/SPARK-53225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun updated SPARK-53225:
----------------------------------
    Description: 
It's tricky because we need Java 17 and Java 21 distribution separately. 

bq. This release leverages the new Java Foreign Function & Memory (FFM) API 
capability ([JEP 412](https://openjdk.org/jeps/412)), which is in incubation in 
Java 17. This means that Java 17 is required to compile this code and at 
runtime. The location of the FFM code was moved from jdk.incubator.foreign in 
Java 17 to its position for preview in Java 21 at java.base/java.lang.foreign. 
As a result, code compiled with Java 17 FFM will not run with Java 21, the next 
LTS. Java does not provide backward compatibility for older incubation code.

  was:
It's tricky because we need Java 17 and Java 21 distribution separately. 

> This release leverages the new Java Foreign Function & Memory (FFM) API 
> capability ([JEP 412](https://openjdk.org/jeps/412)), which is in incubation 
> in Java 17. This means that Java 17 is required to compile this code and at 
> runtime. The location of the FFM code was moved from jdk.incubator.foreign in 
> Java 17 to its position for preview in Java 21 at 
> java.base/java.lang.foreign. As a result, code compiled with Java 17 FFM will 
> not run with Java 21, the next LTS. Java does not provide backward 
> compatibility for older incubation code.


> Upgrade `datasketches-java` to 7.0.1 and `datasketches-memory` to 4.1.0
> -----------------------------------------------------------------------
>
>                 Key: SPARK-53225
>                 URL: https://issues.apache.org/jira/browse/SPARK-53225
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Build
>    Affects Versions: 4.1.0
>            Reporter: Dongjoon Hyun
>            Priority: Major
>              Labels: pull-request-available
>
> It's tricky because we need Java 17 and Java 21 distribution separately. 
> bq. This release leverages the new Java Foreign Function & Memory (FFM) API 
> capability ([JEP 412](https://openjdk.org/jeps/412)), which is in incubation 
> in Java 17. This means that Java 17 is required to compile this code and at 
> runtime. The location of the FFM code was moved from jdk.incubator.foreign in 
> Java 17 to its position for preview in Java 21 at 
> java.base/java.lang.foreign. As a result, code compiled with Java 17 FFM will 
> not run with Java 21, the next LTS. Java does not provide backward 
> compatibility for older incubation code.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to