Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-43831 Build and Run Spark on Java 21
  3. SPARK-42369

Fix constructor for java.nio.DirectByteBuffer for Java 21+

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            luhenry Ludovic Henry
            luhenry Ludovic Henry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: