Topic

Java

Monitor Java ecosystem developments covering JVM releases, framework updates, and library evolutions. Our digest aggregates Spring ecosystem news, Jakarta EE progress, and performance tuning from developer communities.

What this topic tracks

  • Language releases and proposals
  • Libraries, tooling, and ecosystem updates
  • Performance, idioms, and production lessons

Java · 32 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

12 stories

Java sealed classes and exhaustive pattern matching

neilmadden.blog · 18 Oct

Java · Programming Languages

Java sealed classes enable exhaustive pattern matching: the compiler can verify that a switch covers every permitted subtype without a default clause.

However, adding a subtype can break consumers at compile time, and if consumers are not recompiled, the new case may instead cause a runtime MatchException. Therefore, sealed types are safer within components compiled together but risky in public APIs, where extending them can break clients and may require a major version change.

Skipper, Airbnb’s embedded workflow engine, is now open source

medium.com · 10 Nov

Backend · Java · Software Architecture

Airbnb has open-sourced Skipper, an embedded workflow engine under the Apache 2.0 license.

Java and Kotlin services can define durable multi-step workflows as classes, persist state in their existing database, pause for signals or timers, and recover through checkpoints and deterministic replay without a separate orchestration cluster. The release includes MySQL and SQLite adapters, testing utilities, an admin UI, retries, compensation, workflow evolution, and Skipper State Machine; Postgres and DynamoDB support are planned.

Dissecting the CPU-memory relationship in garbage collection (OpenJDK 26)

norlinder.nu · 23 Feb

Java · Performance · Computer Science

Modern Java garbage collectors, like ZGC and G1, decouple pause times from CPU overhead, creating operational blind spots.

OpenJDK 26 introduces the MemoryMXBean.getTotalGcCpuTime() API and -Xlog:cpu to quantify explicit GC costs. This allows engineers to measure infrastructure efficiency and make informed decisions regarding the trade-offs between memory allocation and CPU consumption.

How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938)

blog.cloudflare.com · 18 Nov

Cybersecurity · Java

Cloudflare WAF helps mitigate Java4Shell (CVE-2026-114938), a critical OpenJDK Base64 decoder memory-corruption flaw enabling remote code execution on affected x86-64 systems with AVX-512 VBMI.

Cloudflare’s Managed Ruleset adds six paid-plan rules for malformed Base64 in HTTP headers, paths, queries, bodies, JWTs and WebAuthn values; they log by default and can be switched to Block after review. WAF Attack Score adds complementary detection. Organizations must still patch every Java runtime and restart services; JVM flags are temporary workarounds.

The G1 Garbage Collector

dev.java · 17 Nov

Java · Performance

G1 is the default garbage collector in all environments from JDK 27, balancing throughput and latency through region-based, generational, mostly concurrent evacuation.

It divides the heap into uniform regions for eden, survivor, old, and humongous objects, then alternates Young-Only collections with Space-Reclamation mixed collections that prioritize old regions containing the most garbage. Use -XX:+UseG1GC only when needed on older JDKs; configuration trades throughput, latency, and memory footprint rather than delivering universally better performance.

⚔️ Go vs Java: The Minimalist vs The Enterprise Veteran

dev.to · 11 May

Go · Java · Software Architecture

This overview compares Java and Go, examining their origins, philosophies, and technical trade-offs.

While Go focuses on minimalism, architectural efficiency for cloud-native systems, and ease of onboarding, Java offers a robust ecosystem for complex enterprise domains and long-running performance. Choosing between them depends on team seniority, project scale, and operational requirements.

How hard is it to check for whitespace?

serce.me · 30 Oct

Java

Whitespace checking is complicated because Unicode defines 25 whitespace characters, runtimes apply different rules, and the set can change over time.

Java excludes several non-breaking spaces, Python recognizes 29 characters, and JavaScript differs again. Guava checks Unicode whitespace efficiently with a 32-slot perfect hash table: multiplication and a bit shift select a slot, then a character comparison prevents false matches. Its multiplier was found among collision-free alternatives.

Beyond API Compatibility: Building a Tool to Measure the Blast Radius of Library Changes

netflixtechblog.com · 23 Oct

Java

Netflix built Quasar, an internal tool that measures library-change blast radius by linking API diffs to exact symbol references across consumer repositories.

It uses SCIP indexes to retain API definitions, references, dependency versions, and source locations, then compares commits and queries impact through Amazon Athena. Quasar supports usage analysis across JVM, Go, Python, JavaScript/TypeScript, and Rust; JVM compatibility and Protobuf tracing have narrower scope. Reports expose affected repositories, versions, call sites, and evidence quality, helping producers plan releases and migrations before merging.

Java4Shell is a reason to use Java

mccue.dev · 18 Nov

Cybersecurity · Java · Programming Languages

Java4Shell exposed a vulnerability in the JVM’s handwritten assembly intrinsic for Base64 encoding; deployments should temporarily add `-XX:-UseBASE64Intrinsics` and upgrade to a patched VM.

The incident illustrates the risk of native code and shared dependencies, but the author argues Java’s memory safety and restricted native access reduce exposure compared with ecosystems where dependencies can freely include native code. JVM JIT compilation also delivers near-native performance, so most Java programs need no native extensions; Kotlin and others benefit similarly.

If I release it, you won’t get the same experience I get

notes.highlysuspect.agency · 26 Aug

Java · Software Architecture · Testing

While refactoring Minecraft mod build tooling, the author created jardiff, a semantic comparison tool that normalizes JSON, disassembles class files, recursively inspects archives, and applies Myers diff.

Keeping its source in the editor enables immediate, domain-specific customization—such as ignoring class-version changes—without anticipating configuration flags or DSLs. Packaging it as a binary would freeze that flexibility.

JDK 28

openjdk.org · 17 Oct

Java

JDK 28 will be the Reference Implementation of Java SE Platform version 28 under JSR 403.

Its main line accepts bug fixes, small enhancements, and JEPs, while GPL-licensed early-access binaries are available. Ten JEPs are currently targeted, covering Value Objects, generational Shenandoah GC, strict field initialization, a Simple JSON API, cryptographic PEM encodings, Structured Concurrency, Ahead-of-Time Code Compilation, ZGC startup and warmup, adaptive heap sizing, and macOS/x64 port deprecation.

annote: Writing java using only annotations

github.com · 6 Jan

Java · Programming Languages · Software Architecture

Annote is an experimental and satirical project that transforms Java annotations into a fully functional, interpreted programming language.

While annotations were originally designed for metadata, this project utilizes reflection to execute logic defined entirely within annotation parameters, including variables, loops, conditionals, and arithmetic. The framework uses a shunting-yard algorithm for expression parsing and a stack-based approach for block management. Despite its 'cursed' nature, Annote supports advanced features like recursion, state management through class-level fields, and custom exception handling via specific annotations. It serves as a humorous yet technical exploration of the limits of the Java Reflection API and the annotation system, intentionally disregarding traditional best practices in favor of metadata-driven execution.

Where it came fromHacker NewsLobstersAirbnb Tech BlogCloudflare BlogDev.toNetflix TechBlogCreate a Snapbyte.dev digest and choose Java as one of your topics.Build your digest