The following describes selected improvements of the Java tooling. See the Java 18 release notes.
Java 18 is introducing the following tooling enhancements.
JEP 408 is adding the
jwebserver
tool that can serve static files and support theHEAD
andGET
methods. This is simplifying situations where a simple web server is needed for example for testing and eliminating the need for external dependencies. In case a more customized web server is required, we can use the implementations from the packagecom.sun.net.httpserver
which constitutes the base forjwebserver
.JEP 413 is adding support to include Java code snippets either from external sources of inline snippets. Nicolai Parlog has a pretty decent summary of some of the features builtin. See https://nipafx.dev/inside-java-newscast-20/#code-in-javadoc