Class VectorApiEleventhIncubatorNotes
java.lang.Object
net.jrodolfo.java_evolution.java26.vector_api.VectorApiEleventhIncubatorNotes
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult from one child process invocation.static final recordResult from compiling and running the generated incubator source. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongoal()runVectorWorkflow(Path workspace) Runs a real Java 26 Vector API workflow in a temporary workspace.status()
-
Constructor Details
-
VectorApiEleventhIncubatorNotes
public VectorApiEleventhIncubatorNotes()
-
-
Method Details
-
runVectorWorkflow
public VectorApiEleventhIncubatorNotes.VectorWorkflowResult runVectorWorkflow(Path workspace) throws IOException, InterruptedException 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 writtenInterruptedException- when waiting for a child process is interrupted
-
probeSource
- Returns:
- generated Java source for the child JVM
-
programmingModel
- Returns:
- a short definition of the programming model
-
goal
- Returns:
- a short goal statement without a benchmark claim
-
status
- Returns:
- a short status note
-