You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ludovic Henry (Jira)" <ji...@apache.org> on 2023/02/07 08:11:00 UTC

[jira] [Created] (SPARK-42369) Fix constructor for java.nio.DirectByteBuffer for Java 21+

Ludovic Henry created SPARK-42369:
-------------------------------------

             Summary: Fix constructor for java.nio.DirectByteBuffer for Java 21+
                 Key: SPARK-42369
                 URL: https://issues.apache.org/jira/browse/SPARK-42369
             Project: Spark
          Issue Type: Bug
          Components: Java API
    Affects Versions: 3.5.0
            Reporter: Ludovic Henry


In the latest JDK, the constructor {{DirectByteBuffer(long, int)}} was replaced with {{{}DirectByteBuffer(long, long){}}}. We just want to support both by probing for the legacy one first and falling back to the newer one second.

This change is completely transparent for the end-user, and makes sure Spark works transparently on the latest JDK as well.



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

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