Class VectorApiEleventhIncubatorNotes

java.lang.Object
net.jrodolfo.java_evolution.java26.vector_api.VectorApiEleventhIncubatorNotes

public class VectorApiEleventhIncubatorNotes extends Object
Demonstrates the Java 26 Vector API, continued as an eleventh incubator by JEP 529.

The repository itself does not compile against incubator modules. Instead, this example writes a small Java source file, compiles it with javac --add-modules jdk.incubator.vector --release 26, and runs it with java --add-modules jdk.incubator.vector. That keeps the main Maven build stable while still demonstrating the real incubator API.

  • Constructor Details

    • VectorApiEleventhIncubatorNotes

      public VectorApiEleventhIncubatorNotes()
  • Method Details

    • runVectorWorkflow

      Runs a real Java 26 Vector API workflow in a temporary workspace.
      Parameters:
      workspace - temporary directory for generated source and class files
      Returns:
      result containing compilation and execution output
      Throws:
      IOException - when the source file cannot be written
      InterruptedException - when waiting for a child process is interrupted
    • probeSource

      public String probeSource()
      Returns:
      generated Java source for the child JVM
    • programmingModel

      public String programmingModel()
      Returns:
      a short definition of the programming model
    • goal

      public String goal()
      Returns:
      a short goal statement without a benchmark claim
    • status

      public String status()
      Returns:
      a short status note