24 Java Features You Missed In 2022

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A roundup of 24 lesser-known Java features added in JDK 18 and JDK 19 during 2022. Highlights include: structured concurrency debugging with thread hierarchy navigation in IntelliJ; new Future methods (exceptionNow, resultNow, state) and ForkJoinPool/ForkJoinTask additions; HashSet.newHashSet and HashMap.newHashMap factory methods for correct-sized collections; Vector API compress/expand operations plus Integer/Long compress/expand intrinsics; suppressing DocLint warnings with @SuppressWarnings; string deduplication support in ZGC, Serial GC, and Parallel GC; G1 heap region size increase up to 512MB; security performance improvements (SHA3 2x speedup, TLS caching); custom localized DateTimeFormatter via ofLocalizedPattern; multi-term Javadoc search; jarsigner -providerPath option; InetAddress resolution SPI for custom resolvers; Metal rendering pipeline as default on macOS; JAAS Subject.callAs and Subject.current replacements; named record patterns; and the simple jwebserver static file server.

13m read timeFrom nipafx.dev
Post cover image
Table of contents
▚ Intro▚ Structured Concurrency Debugging▚ Chaotic Concurrency 😋▚ Hash, Set, and Map 🎾▚ GitHub Action▚ Compressing and Expanding▚ Suppressing Javadoc Linting▚ String Deduplication▚ G1 Region Size▚ Security Performance▚ Custom Localized Date-Time Formats▚ Javadoc Search▚ jarsigner Provider Path▚ Address Resolution SPI▚ Metal Rendering▚ JAAS without Security Manager▚ Named Record Patterns▚ Simple Web Server▚ Outro

Sort: