Programming

What JDK 18 Shipped

Java Development Kit (JDK) 18 is now available as an official production release. The new version of standard Java has nine new features, including a simple web server and another preview of pattern matching for switch. The OpenJDK page lists the following features as officially targeting JDK…

What JDK 18 Shipped

JDK 18 (March 2022) was a housekeeping release — small features, one default change that quietly fixed twenty years of platform-dependent bugs.

UTF-8 became the default

Charset defaults followed the OS — so a file written on Linux read garbled on Windows. JDK 18 made UTF-8 the default charset everywhere; file.encoding stopped being a lottery. The kind of fix nobody notices and everyone needed.

jwebserver

A built-in static file server — jwebserver serves a directory over HTTP for testing and docs. Not production software; the equivalent of python -m http.server, finally in the JDK.

The rest

Vector API kept incubating (SIMD math), the internet-address resolution SPI opened DNS to pluggable resolvers, and @snippet arrived for Javadoc code examples. Deprecations cleared the ground for the bigger changes in 19–21. A quiet release doing groundwork — which is what even-numbered feature releases are for.

$ tail -f /forums

Discussion

Comments live on the community forums — sign in there to reply.