Class ForeignFunctionMemoryApiPreviewNotes

java.lang.Object
net.jrodolfo.java_evolution.java19.ForeignFunctionMemoryApiPreviewNotes

public class ForeignFunctionMemoryApiPreviewNotes extends Object
Explains the Foreign Function and Memory API as a Java 19 preview feature.

Native integration in Java traditionally meant JNI, which is powerful but complex and easy to make unsafe. The Foreign Function and Memory API was introduced to provide a supported model for calling native functions and working with memory outside the Java heap.

The API evolved through later releases before finalization. A serious example normally calls native code or manages off-heap memory, so this repository keeps the Java 19 entry as notes.

  • Constructor Details

    • ForeignFunctionMemoryApiPreviewNotes

      public ForeignFunctionMemoryApiPreviewNotes()
  • Method Details

    • purpose

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

      public String alternativeTo()
      Names the older technology this API can replace for many use cases.
      Returns:
      the older technology name
    • projectDecision

      public String projectDecision()
      Explains why this repository keeps it as notes.
      Returns:
      the project decision