Package net.jrodolfo.java_evolution.java25
package net.jrodolfo.java_evolution.java25
Examples and notes for features introduced in Java 25.
Java 25 finalized scoped values, module import declarations, compact source files and instance main methods, flexible constructor bodies, and the Key Derivation Function API. It also continues newer preview/incubator work and includes AOT, JFR, object-layout, and garbage-collector improvements that are documented as notes.
-
ClassDescriptionDemonstrates Java 25 compact source files and instance main methods.Captures the compact source launcher result.Demonstrates flexible constructor bodies, finalized in Java 25.Simple account model used to demonstrate validation before constructor delegation.Demonstrates module import declarations, finalized in Java 25.Captures JDK tool output.Demonstrates Java 25 PEM encodings of cryptographic objects, previewed by JEP 470.Result from one child process invocation.Result from compiling and running the generated preview source.Demonstrates primitive patterns, previewed for the third time in Java 25 by JEP 507.Result from one child process invocation.Result from compiling and running the generated preview source.