Class ForeignFunctionMemorySecondPreviewNotes

java.lang.Object
net.jrodolfo.java_evolution.java20.ForeignFunctionMemorySecondPreviewNotes

public class ForeignFunctionMemorySecondPreviewNotes extends Object
Explains the Foreign Function and Memory API second preview in Java 20.

Java code has long been able to call native code through JNI, but JNI is difficult to use safely and cleanly. The Foreign Function and Memory API aims to provide supported native calls and off-heap memory access with clearer Java-level APIs.

Java 20 was still a preview release for this API, so this repository avoids a native-code example and keeps the focus on the problem the feature solves.

  • Constructor Details

    • ForeignFunctionMemorySecondPreviewNotes

      public ForeignFunctionMemorySecondPreviewNotes()
  • Method Details

    • purpose

      public String purpose()
      Explains the high-level goal.
      Returns:
      a short explanation
    • java20Status

      public String java20Status()
      Describes the Java 20 maturity level.
      Returns:
      a short status note
    • finalRelease

      public String finalRelease()
      Names the release where the API became final.
      Returns:
      a short release note