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
    • oldApproachProblem

      public String oldApproachProblem()
      Explains the older mechanism that motivated the API.
      Returns:
      a short explanation
    • java20Status

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

      public String java20ApiShape()
      Returns the Java 20 lifecycle API shape that replaced the Java 19 session model.
      Returns:
      Java 20 preview API source shape
    • projectDecision

      public String projectDecision()
      Explains why this Java 20 entry stays as notes.
      Returns:
      the project decision
    • finalRelease

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